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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe compare is done ignoring case, otherwise "Z" would come before "a".booleanbooleanbooleanbooleanMethods inherited from class ch.tocco.nice2.types.spi.AbstractTypeHandler
init, isBoolean, isEqual, isolate, shouldBeUnique, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
comparein interfaceTypeHandler<String>- Overrides:
comparein classAbstractComparableTypeHandler<String>
-
asString
- Specified by:
asStringin interfaceTypeHandler<String>- Overrides:
asStringin classAbstractTypeHandler<String>
-
asObject
- Throws:
StringConversionException
-
isNumeric
public boolean isNumeric()- See Also:
-
isChronological
public boolean isChronological()- See Also:
-
getEmptyValue
- See Also:
-
matches
- Specified by:
matchesin interfaceTypeHandler<String>- Overrides:
matchesin classAbstractTypeHandler<String>
-
contains
- Specified by:
containsin interfaceTypeHandler<String>- Overrides:
containsin classAbstractTypeHandler<String>
-