src/org/ohmage/domain/Location.java
public static List<ColumnKey> valueOfString(final String value) {
			if(value == null) {
				throw new IllegalArgumentException("The value is null.");
			}
			
			String sanitizedValue = value.trim().toLowerCase();
			if(NAMESPACE.equals(sanitizedValue)) {
				return ALL_COLUMNS;
			}
			
			if(sanitizedValue.startsWith(NAMESPACE + NAMESPACE_DIVIDOR)) {
				sanitizedValue = 
						value.substring(
								NAMESPACE.length() +
								NAMESPACE_DIVIDOR.length());
			}
			
			for(LocationColumnKey currKey : values()) {
				if(currKey.key.equals(sanitizedValue) ||
						currKey.abbreviatedKey.equals(sanitizedValue)) {
					
					List<ColumnKey> result = new ArrayList<ColumnKey>(1);
					result.add(currKey);
					return result;
				}
			}
			
			throw new IllegalArgumentException("Unknown column key.");
		}
/**
		 * Converts a string, either the human-readable version or the 
		 * abbreviated version, to its LocationColumnKey object.
		 *  
		 * @param value The string value to convert.
		 * 
		 * @return The LocationColumnKey that represents this object.
		 * 
		 * @throws IllegalArgumentException The string could not be converted 
		 * 									into a LocationColumnKey object.
		 */
Converts a string, either the human-readable version or the
abbreviated version, to its LocationColumnKey object.

@param value The string value to convert.

@return The LocationColumnKey that represents this object.

@throws IllegalArgumentException The string could not be converted
into a LocationColumnKey object.
Converts a string either the human - readable version or the abbreviated version to its LocationColumnKey object . @param value The string value to convert . @return The LocationColumnKey that represents this object . @throws IllegalArgumentException The string could not be converted into a LocationColumnKey object .
public static List<ColumnKey> valueOfString(final String value) {
			if(value == null) {
				throw new IllegalArgumentException("The value is null.");
			}
			String sanitizedValue = value.trim().toLowerCase();
			if(NAMESPACE.equals(sanitizedValue)) {
				return ALL_COLUMNS;
			}
			if(sanitizedValue.startsWith(NAMESPACE + NAMESPACE_DIVIDOR)) {
				sanitizedValue = 
						value.substring(
								NAMESPACE.length() +
								NAMESPACE_DIVIDOR.length());
			}
			for(LocationColumnKey currKey : values()) {
				if(currKey.key.equals(sanitizedValue) ||
						currKey.abbreviatedKey.equals(sanitizedValue)) {
					List<ColumnKey> result = new ArrayList<ColumnKey>(1);
					result.add(currKey);
					return result;
				}
			}
			throw new IllegalArgumentException("Unknown column key.");
		}
public static List < ColumnKey > valueOfString ( final String value ) { if ( value == null ) { throw new IllegalArgumentException ( "The value is null." ) ; } String sanitizedValue = value . trim ( ) . toLowerCase ( ) ; if ( NAMESPACE . equals ( sanitizedValue ) ) { return ALL_COLUMNS ; } if ( sanitizedValue . startsWith ( NAMESPACE + NAMESPACE_DIVIDOR ) ) { sanitizedValue = value . substring ( NAMESPACE . length ( ) + NAMESPACE_DIVIDOR . length ( ) ) ; } for ( LocationColumnKey currKey : values ( ) ) { if ( currKey . key . equals ( sanitizedValue ) || currKey . abbreviatedKey . equals ( sanitizedValue ) ) { List < ColumnKey > result = new ArrayList < ColumnKey > ( 1 ) ; result . add ( currKey ) ; return result ; } } throw new IllegalArgumentException ( "Unknown column key." ) ; }
Converts a string, either the human-readable version or the
 abbreviated version, to its LocationColumnKey object.
Converts a string either the human - readable version or the abbreviated version to its LocationColumnKey object .