|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Immutable public interface TypeSystem
An interface that defines the value types used in tuples.
Nested Class Summary | |
---|---|
static interface |
TypeSystem.TypeFactory<T>
Factory interface for creating values from strings. |
Method Summary | |
---|---|
String |
asString(Object value)
Get the string representation of the supplied value, using the most appropriate factory given the value. |
TypeSystem.TypeFactory<?> |
getBinaryFactory()
Get the type factory for binary objects. |
TypeSystem.TypeFactory<Boolean> |
getBooleanFactory()
Get the type factory for boolean types. |
String |
getCompatibleType(String type1,
String type2)
Get the type that is compatible with both of the supplied types. |
TypeSystem.TypeFactory<?> |
getDateTimeFactory()
Get the type factory for date-time objects. |
TypeSystem.TypeFactory<BigDecimal> |
getDecimalFactory()
Get the type factory for decimal types. |
Comparator<Object> |
getDefaultComparator()
Get the comparator that should be used by default. |
String |
getDefaultType()
Get the name of the type that is used by default. |
TypeSystem.TypeFactory<Double> |
getDoubleFactory()
Get the type factory for double types. |
TypeSystem.TypeFactory<Long> |
getLongFactory()
Get the type factory for long types. |
TypeSystem.TypeFactory<?> |
getPathFactory()
Get the type factory for path objects. |
TypeSystem.TypeFactory<?> |
getReferenceFactory()
Get the type factory for references objects. |
TypeSystem.TypeFactory<String> |
getStringFactory()
Get the type factory for string types. |
TypeSystem.TypeFactory<?> |
getTypeFactory(Object prototype)
Get the type factory for the type denoted by the supplied prototype value. |
TypeSystem.TypeFactory<?> |
getTypeFactory(String typeName)
Get the type factory given the name of the type. |
Set<String> |
getTypeNames()
Get the names of the supported types. |
Method Detail |
---|
TypeSystem.TypeFactory<?> getTypeFactory(String typeName)
typeName
- the name of the type
TypeSystem.TypeFactory<?> getTypeFactory(Object prototype)
prototype
- the value whose type is to be identified
TypeSystem.TypeFactory<Boolean> getBooleanFactory()
TypeSystem.TypeFactory<Long> getLongFactory()
TypeSystem.TypeFactory<String> getStringFactory()
TypeSystem.TypeFactory<Double> getDoubleFactory()
TypeSystem.TypeFactory<BigDecimal> getDecimalFactory()
TypeSystem.TypeFactory<?> getDateTimeFactory()
TypeSystem.TypeFactory<?> getPathFactory()
TypeSystem.TypeFactory<?> getReferenceFactory()
TypeSystem.TypeFactory<?> getBinaryFactory()
String getDefaultType()
Comparator<Object> getDefaultComparator()
Set<String> getTypeNames()
String asString(Object value)
value
- the value
String getCompatibleType(String type1, String type2)
type1
- the first type; may be nulltype2
- the second type; may be null
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |