Class EntityType

java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.model.EntityType
All Implemented Interfaces:
Annotatable, Comparable<EntityType>

public class EntityType extends Object implements Comparable<EntityType>, Annotatable
The types of entities.
  • Field Details

    • entityName

      public final String entityName
      The entityName of this entity type as used in URLs.
    • namespace

      public String namespace
      The namespace of the Entity Type.
    • mainContainer

      public String mainContainer
      The name of the main Container (collection) of this entity type as used in URLs.
  • Constructor Details

    • EntityType

      public EntityType(String singular)
    • EntityType

      public EntityType(String singular, String container)
  • Method Details

    • setNamespace

      public void setNamespace(String namespace)
    • setMainContainer

      public void setMainContainer(String entityContainer)
    • registerProperty

      public EntityType registerProperty(Property property)
    • init

      public void init()
    • getPrimaryKey

      public PrimaryKey getPrimaryKey()
    • setPrimaryKey

      public void setPrimaryKey(PrimaryKey primaryKey)
    • getEntityName

      public String getEntityName()
    • getShortName

      public String getShortName()
    • getContainerName

      public String getContainerName()
    • getProperty

      public Property getProperty(String name)
    • getEntityProperty

      public EntityPropertyMain getEntityProperty(String name)
    • getNavigationPropertyEntity

      public NavigationPropertyEntity getNavigationPropertyEntity(String name)
    • getNavigationPropertySet

      public NavigationPropertyEntitySet getNavigationPropertySet(String name)
    • getNavigationProperty

      public NavigationPropertyAbstract getNavigationProperty(String name)
    • getPropertySet

      public Set<Property> getPropertySet()
      The Set of PROPERTIES that Entities of this type have.
      Returns:
      The Set of PROPERTIES that Entities of this type have.
    • getEntityProperties

      public Set<EntityPropertyMain> getEntityProperties()
      Get the set of Entity properties.
      Returns:
      The set of Entity properties.
    • hasProperty

      public boolean hasProperty(Property property)
    • hasProperty

      public boolean hasProperty(String propertyName)
    • getNavigationProperties

      public Set<NavigationProperty> getNavigationProperties()
      Get the set of Navigation properties.
      Returns:
      The set of Navigation properties.
    • getNavigationEntities

      public Set<NavigationPropertyEntity> getNavigationEntities()
      Get the set of Navigation properties pointing to single entities.
      Returns:
      The set of Navigation properties pointing to single entities.
    • getNavigationSets

      public Set<NavigationPropertyEntitySet> getNavigationSets()
      Get the set of Navigation properties pointing to entity sets.
      Returns:
      The set of Navigation properties pointing to entity sets.
    • getModelRegistry

      public ModelRegistry getModelRegistry()
      The ModelRegistry this EntityType is registered on.
      Returns:
      the modelRegistry
    • setModelRegistry

      public void setModelRegistry(ModelRegistry modelRegistry)
      The ModelRegistry this EntityType is registered on.
      Parameters:
      modelRegistry - the modelRegistry to set
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(EntityType o)
      Specified by:
      compareTo in interface Comparable<EntityType>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAnnotations

      public List<Annotation> getAnnotations()
      Specified by:
      getAnnotations in interface Annotatable
    • setAnnotations

      public EntityType setAnnotations(List<Annotation> annotations)
    • addAnnotation

      public EntityType addAnnotation(Annotation annotation)