Package org.ec4j.core
Class PropertyTypeRegistry
java.lang.Object
org.ec4j.core.PropertyTypeRegistry
A mapping from property names to
PropertyTypes. Note that the mapping is case insensitive - i.e. all names
are internally transformed to lower case using Locale.US Locale.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPropertyTypeRegistry(Map<String, PropertyType<?>> types) Use thebuilder()to create new instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyTypeRegistry.Builderbuilder()static final PropertyTypeRegistrydefault_()PropertyType<?> getTypes()
-
Field Details
-
types
-
-
Constructor Details
-
PropertyTypeRegistry
PropertyTypeRegistry(Map<String, PropertyType<?>> types) Use thebuilder()to create new instances.- Parameters:
types-
-
-
Method Details
-
builder
- Returns:
- a new
PropertyTypeRegistry.Builder
-
default_
- Returns:
- a registry containing default mappings. See
PropertyTypeRegistry.Builder.defaults()
-
getType
- Parameters:
name- the name of aProperty- Returns:
- the
PropertyTypeassociated with the givennameornullif there is noPropertyTypeassociated with the givenname
-
getTypes
- Returns:
- the collection of the registered types
-