Class StringConverter.Locale
java.lang.Object
org.apache.sis.internal.converter.ClassPair<S,T>
org.apache.sis.internal.converter.SystemConverter<String,T>
org.apache.sis.internal.converter.StringConverter<Locale>
org.apache.sis.internal.converter.StringConverter.Locale
- All Implemented Interfaces:
Serializable
,Function<String,
,Locale> ObjectConverter<String,
Locale>
- Enclosing class:
- StringConverter<T>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.converter.StringConverter
StringConverter.Angle, StringConverter.BigDecimal, StringConverter.BigInteger, StringConverter.Boolean, StringConverter.Byte, StringConverter.Charset, StringConverter.CodeList<T extends org.opengis.util.CodeList<T>>, StringConverter.Double, StringConverter.Enum<T extends Enum<T>>, StringConverter.File, StringConverter.Float, StringConverter.Integer, StringConverter.InternationalString, StringConverter.Locale, StringConverter.Long, StringConverter.Number, StringConverter.Path, StringConverter.Short, StringConverter.Unit, StringConverter.URI, StringConverter.URL
-
Field Summary
FieldsFields inherited from class org.apache.sis.internal.converter.ClassPair
sourceClass, targetClass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Locale
Invoked byStringConverter.apply(String)
for converting the given string to the target type of this converter.Methods inherited from class org.apache.sis.internal.converter.StringConverter
apply, createInverse, inverse, properties
Methods inherited from class org.apache.sis.internal.converter.SystemConverter
bijective, equals, formatErrorMessage, getSourceClass, getTargetClass, readResolve, unique
Methods inherited from class org.apache.sis.internal.converter.ClassPair
cast, hashCode, parentSource, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
Locale
public Locale()
-
-
Method Details
-
doConvert
Description copied from class:StringConverter
Invoked byStringConverter.apply(String)
for converting the given string to the target type of this converter.- Specified by:
doConvert
in classStringConverter<Locale>
- Parameters:
source
- the string to convert, guaranteed to be non-null and non-empty.- Returns:
- the converted value.
- Throws:
IllformedLocaleException
-