src/org/ohmage/domain/MobilityPoint.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(ClassifierDataColumnKey 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 ClassifierDataColumnKey object.
			 *  
			 * @param value The string value to convert.
			 * 
			 * @return The AccelDataColumnKey that represents this object.
			 * 
			 * @throws IllegalArgumentException The string could not be 
			 * 									converted into a 
			 * 									ClassifierDataColumnKey object.
			 */
Converts a string, either the human-readable version or the
abbreviated version, to its ClassifierDataColumnKey object.

@param value The string value to convert.

@return The AccelDataColumnKey that represents this object.

@throws IllegalArgumentException The string could not be
converted into a
ClassifierDataColumnKey object.
Converts a string either the human - readable version or the abbreviated version to its ClassifierDataColumnKey object . @param value The string value to convert . @return The AccelDataColumnKey that represents this object . @throws IllegalArgumentException The string could not be converted into a ClassifierDataColumnKey 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(ClassifierDataColumnKey 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 ( ClassifierDataColumnKey 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 ClassifierDataColumnKey object.
Converts a string either the human - readable version or the abbreviated version to its ClassifierDataColumnKey object .