public abstract class EncodingStringBridge<T> extends Object implements EncodingBridge, StringBridge
EncodingBridge
s that encode values as Strings using a specific format.Constructor and Description |
---|
EncodingStringBridge() |
Modifier and Type | Method and Description |
---|---|
NullMarker |
createNullMarker(String indexNullAs) |
NumericFieldSettingsDescriptor.NumericEncodingType |
getEncodingType()
Define the numeric encoding to use for the brdige.
|
protected abstract T |
parseIndexNullAs(String indexNullAs)
Parse the 'indexNullAs' string to an indexable value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
objectToString
public NumericFieldSettingsDescriptor.NumericEncodingType getEncodingType()
EncodingBridge
getEncodingType
in interface EncodingBridge
NumericFieldSettingsDescriptor.NumericEncodingType.UNKNOWN
if
this bridge does not use numeric encoding.protected abstract T parseIndexNullAs(String indexNullAs) throws IllegalArgumentException
The required format does not have to be the same as the encoded format.
IllegalArgumentException
- If the given string does not match the required format.public NullMarker createNullMarker(String indexNullAs) throws IllegalArgumentException
createNullMarker
in interface EncodingBridge
indexNullAs
- The value of Field.indexNullAs()
.IllegalArgumentException
- If indexNullAs
cannot be encoded in the required format.Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved