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(WifiDataColumnKey currKey : values()) {
						if(currKey.key.equals(sanitizedValue) ||
								currKey.abbreviatedKey.equals(sanitizedValue)) {
							
							if(SCAN.equals(currKey)) {
								List<ColumnKey> result = 
										new ArrayList<ColumnKey>(2);
								result.add(SSID);
								result.add(STRENGTH);
								return result;
							}
							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 WifiDataColumnKey object.
				 *  
				 * @param value The string value to convert.
				 * 
				 * @return The WifiDataColumnKey that represents this object.
				 * 
				 * @throws IllegalArgumentException The string could not be 
				 * 									converted into a 
				 * 									WifiDataColumnKey object.
				 */
Converts a string, either the human-readable version or the
abbreviated version, to its WifiDataColumnKey object.

@param value The string value to convert.

@return The WifiDataColumnKey that represents this object.

@throws IllegalArgumentException The string could not be
converted into a
WifiDataColumnKey object.
Converts a string either the human - readable version or the abbreviated version to its WifiDataColumnKey object . @param value The string value to convert . @return The WifiDataColumnKey that represents this object . @throws IllegalArgumentException The string could not be converted into a WifiDataColumnKey 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(WifiDataColumnKey currKey : values()) {
						if(currKey.key.equals(sanitizedValue) ||
								currKey.abbreviatedKey.equals(sanitizedValue)) {
							if(SCAN.equals(currKey)) {
								List<ColumnKey> result = 
										new ArrayList<ColumnKey>(2);
								result.add(SSID);
								result.add(STRENGTH);
								return result;
							}
							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 ( WifiDataColumnKey currKey : values ( ) ) { if ( currKey . key . equals ( sanitizedValue ) || currKey . abbreviatedKey . equals ( sanitizedValue ) ) { if ( SCAN . equals ( currKey ) ) { List < ColumnKey > result = new ArrayList < ColumnKey > ( 2 ) ; result . add ( SSID ) ; result . add ( STRENGTH ) ; return result ; } 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 WifiDataColumnKey object.
Converts a string either the human - readable version or the abbreviated version to its WifiDataColumnKey object .