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(SensorDataColumnKey currKey : values()) {
					if(currKey.key.equals(sanitizedValue) ||
							currKey.abbreviatedKey.equals(sanitizedValue)) {
						
						if(ACCELEROMETER_DATA.equals(currKey)) {
							return AccelDataColumnKey.ALL_COLUMNS;
						}
						else if(WIFI_DATA.equals(currKey)) {
							return WifiDataColumnKey.ALL_COLUMNS;
						}
						else {
							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 MobilityColumnKey object.
			 *  
			 * @param value The string value to convert.
			 * 
			 * @return The ColumnKey that represents this object.
			 * 
			 * @throws IllegalArgumentException The string could not be 
			 * 									converted into a 
			 * 									SensorDataColumnKey object or 
			 * 									any of the inner-class objects.
			 */
Converts a string, either the human-readable version or the
abbreviated version, to its MobilityColumnKey object.

@param value The string value to convert.

@return The ColumnKey that represents this object.

@throws IllegalArgumentException The string could not be
converted into a
SensorDataColumnKey object or
any of the inner-class objects.
Converts a string either the human - readable version or the abbreviated version to its MobilityColumnKey object . @param value The string value to convert . @return The ColumnKey that represents this object . @throws IllegalArgumentException The string could not be converted into a SensorDataColumnKey object or any of the inner - class objects .
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(SensorDataColumnKey currKey : values()) {
					if(currKey.key.equals(sanitizedValue) ||
							currKey.abbreviatedKey.equals(sanitizedValue)) {
						if(ACCELEROMETER_DATA.equals(currKey)) {
							return AccelDataColumnKey.ALL_COLUMNS;
						}
						else if(WIFI_DATA.equals(currKey)) {
							return WifiDataColumnKey.ALL_COLUMNS;
						}
						else {
							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 ( SensorDataColumnKey currKey : values ( ) ) { if ( currKey . key . equals ( sanitizedValue ) || currKey . abbreviatedKey . equals ( sanitizedValue ) ) { if ( ACCELEROMETER_DATA . equals ( currKey ) ) { return AccelDataColumnKey . ALL_COLUMNS ; } else if ( WIFI_DATA . equals ( currKey ) ) { return WifiDataColumnKey . ALL_COLUMNS ; } else { 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 MobilityColumnKey object.
Converts a string either the human - readable version or the abbreviated version to its MobilityColumnKey object .