Class EntityType
java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.model.EntityType
- All Implemented Interfaces:
Annotatable,Comparable<EntityType>
The types of entities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe entityName of this entity type as used in URLs.The name of the main Container (collection) of this entity type as used in URLs.The namespace of the Entity Type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAnnotation(Annotation annotation) intbooleanGet the set of Entity properties.getEntityProperty(String name) The ModelRegistry this EntityType is registered on.Get the set of Navigation properties pointing to single entities.Get the set of Navigation properties.getNavigationProperty(String name) Get the set of Navigation properties pointing to entity sets.getProperty(String name) The Set of PROPERTIES that Entities of this type have.inthashCode()booleanhasProperty(Property property) booleanhasProperty(String propertyName) voidinit()registerProperty(Property property) setAnnotations(List<Annotation> annotations) voidsetMainContainer(String entityContainer) voidsetModelRegistry(ModelRegistry modelRegistry) The ModelRegistry this EntityType is registered on.voidsetNamespace(String namespace) voidsetPrimaryKey(PrimaryKey primaryKey) toString()
-
Field Details
-
entityName
The entityName of this entity type as used in URLs. -
namespace
The namespace of the Entity Type. -
mainContainer
The name of the main Container (collection) of this entity type as used in URLs.
-
-
Constructor Details
-
EntityType
-
EntityType
-
-
Method Details
-
setNamespace
-
setMainContainer
-
registerProperty
-
init
public void init() -
getPrimaryKey
-
setPrimaryKey
-
getEntityName
-
getShortName
-
getContainerName
-
getProperty
-
getEntityProperty
-
getPropertySet
The Set of PROPERTIES that Entities of this type have.- Returns:
- The Set of PROPERTIES that Entities of this type have.
-
getEntityProperties
Get the set of Entity properties.- Returns:
- The set of Entity properties.
-
hasProperty
-
hasProperty
-
getModelRegistry
The ModelRegistry this EntityType is registered on.- Returns:
- the modelRegistry
-
setModelRegistry
The ModelRegistry this EntityType is registered on.- Parameters:
modelRegistry- the modelRegistry to set
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<EntityType>
-
equals
-
hashCode
public int hashCode() -
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatable
-
setAnnotations
-
addAnnotation
-