Converts the given string to a unit. The default implementation is as below, omitting the check for null value and the call to {@link #exceptionOccured exceptionOccured(…)}in case of error: {@preformat javareturn Units.valueOf(value);}
@param context Context (GML version, locale, etc.) of the (un)marshalling process.
@param value The string to convert to a unit, or {@code null}.
@return The converted unit, or {@code null} if the given value was null or empty, orif an exception was thrown and {@code exceptionOccured(…)} returned {@code true}.
@throws IllegalArgumentException If the given string can not be converted to a unit.
@see Units#valueOf(String)
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.