private HashMap<String, String> getAttributes() {
		HashMap<String, String> map = new HashMap<String, String>();

		for(LayerField field : mFields) {
			String text = mTextFields.get(field.getName()).getText(); // Get the user input.

			if(!isInputValid(field, text)) // Checks if inputs are valid and alerts the user if they aren't.
				return null;

			/* Perform any replacements specified in the configuration file on the user input. */
			if(!field.getType().split(":", 2)[0].equalsIgnoreCase("gml")) {
				/* Replace given text with specified replacement text. */
				ArrayList<String[]> rep = mConfig.getReplace();
				for(int i=0; i < rep.size(); i++) {
					/* Make String representations of escape sequences into actual escape sequences. */
					for(String key : ESCAPESEQUENCES.keySet())
						rep.get(i)[0] = rep.get(i)[0].replace(key, ESCAPESEQUENCES.get(key));
					text = text.replace(rep.get(i)[0], rep.get(i)[1]);
				}
			}

			map.put(field.getName(), text);
		}
		return map;
	}