protected static class ValueTypeSystem.NodeKeyTypeFactory extends Object implements TypeSystem.TypeFactory<NodeKey>
| Modifier | Constructor and Description |
|---|---|
protected |
ValueTypeSystem.NodeKeyTypeFactory(ValueFactory<String> stringFactory) |
| Modifier and Type | Method and Description |
|---|---|
String |
asReadableString(Object value)
Get a readable and potentially shorter string representation of the supplied value.
|
String |
asString(Object value)
Get the string representation of the supplied value.
|
NodeKey |
create(Object value)
Create the typed representation of the value given the supplied object representation.
|
NodeKey |
create(String value)
Create the typed representation of the value given the supplied string representation.
|
Comparator<NodeKey> |
getComparator()
Get a comparator that can be used to store the values of this type.
|
Class<NodeKey> |
getType()
Get the class representing the value type.
|
String |
getTypeName()
Get the name of the type created by this factory.
|
long |
length(Object value)
Get the length of the supplied value.
|
protected ValueTypeSystem.NodeKeyTypeFactory(ValueFactory<String> stringFactory)
public Class<NodeKey> getType()
TypeSystem.TypeFactorygetType in interface TypeSystem.TypeFactory<NodeKey>public String getTypeName()
TypeSystem.TypeFactorygetTypeName in interface TypeSystem.TypeFactory<NodeKey>public String asString(Object value)
TypeSystem.TypeFactoryasString in interface TypeSystem.TypeFactory<NodeKey>value - the valuepublic String asReadableString(Object value)
TypeSystem.TypeFactoryasReadableString in interface TypeSystem.TypeFactory<NodeKey>value - the valuepublic long length(Object value)
TypeSystem.TypeFactorylength in interface TypeSystem.TypeFactory<NodeKey>value - the valuepublic NodeKey create(Object value) throws ValueFormatException
TypeSystem.TypeFactorycreate in interface TypeSystem.TypeFactory<NodeKey>value - the object representation of the valuetypeValueFormatException - if the object cannot be converted to a typed valuepublic NodeKey create(String value) throws ValueFormatException
TypeSystem.TypeFactorycreate in interface TypeSystem.TypeFactory<NodeKey>value - the string representation of the valuetypeValueFormatException - if the string cannot be converted to a typed valuepublic Comparator<NodeKey> getComparator()
TypeSystem.TypeFactorygetComparator in interface TypeSystem.TypeFactory<NodeKey>Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.