Class StringTypeHandler
java.lang.Object
ch.tocco.nice2.types.spi.AbstractTypeHandler<String>
ch.tocco.nice2.types.spi.AbstractComparableTypeHandler<String>
ch.tocco.nice2.types.impl.handlers.StringTypeHandler
- All Implemented Interfaces:
TypeHandler<String>
- Direct Known Subclasses:
IdentifierTypeHandler
-
Field Summary
Fields inherited from class ch.tocco.nice2.types.spi.AbstractTypeHandler
baseHandler, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
The compare is done ignoring case, otherwise "Z" would come before "a".boolean
boolean
boolean
boolean
Methods inherited from class ch.tocco.nice2.types.spi.AbstractTypeHandler
init, isBoolean, isEqual, isolate, shouldBeUnique, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.types.spi.TypeHandler
getGenerationType
-
Constructor Details
-
StringTypeHandler
public StringTypeHandler()
-
-
Method Details
-
compare
The compare is done ignoring case, otherwise "Z" would come before "a".- Specified by:
compare
in interfaceTypeHandler<String>
- Overrides:
compare
in classAbstractComparableTypeHandler<String>
-
asString
- Specified by:
asString
in interfaceTypeHandler<String>
- Overrides:
asString
in classAbstractTypeHandler<String>
-
asObject
- Throws:
StringConversionException
-
isNumeric
public boolean isNumeric()- See Also:
-
isChronological
public boolean isChronological()- See Also:
-
getEmptyValue
- See Also:
-
matches
- Specified by:
matches
in interfaceTypeHandler<String>
- Overrides:
matches
in classAbstractTypeHandler<String>
-
contains
- Specified by:
contains
in interfaceTypeHandler<String>
- Overrides:
contains
in classAbstractTypeHandler<String>
-