Class ModelRegistry
java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.model.ModelRegistry
The modelRegistry holds the registered EntityTypes and PropertyTypes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EntityPropertyMain<String>The global EntityProperty SelfLink. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal EntityTypegetEntityTypeForName(String typeName) Get the entity type with the given name.final Set<EntityType>final PropertyTypegetPropertyType(String name) voidfinal ModelRegistryregisterEntityType(EntityType type) Register a new entity type.
-
Field Details
-
EP_SELFLINK
The global EntityProperty SelfLink.
-
-
Constructor Details
-
ModelRegistry
public ModelRegistry()
-
-
Method Details
-
registerEntityType
Register a new entity type. Registering the same type twice is a no-op, registering a new entity type with a name that already exists causes anIllegalArgumentException.- Parameters:
type- The entity type to register.- Returns:
- this ModelRegistry.
-
getEntityTypeForName
Get the entity type with the given name.- Parameters:
typeName- The name of the entity type to find.- Returns:
- the entity type with the given name, or null.
-
getEntityTypes
-
registerPropertyType
-
getPropertyType
-
getPropertyTypes
-
initFinalise
public void initFinalise()
-