Class EntityDef

  • All Implemented Interfaces:
    Serializable

    public class EntityDef
    extends TypeDef
    EntityDef describes a type of entity in the metadata collection. It is the simplest TypeDef that adds no other properties beyond TypeDef.
    See Also:
    Serialized Form
    • Constructor Detail

      • EntityDef

        public EntityDef()
        Minimal constructor initializes the superclass as an Entity
      • EntityDef

        public EntityDef​(TypeDefCategory category,
                         String guid,
                         String name,
                         long version,
                         String versionName)
        Typical constructor is passed the properties of the typedef's super class being constructed.
        Parameters:
        category - category of this TypeDef
        guid - unique id for the TypeDef
        name - unique name for the TypeDef
        version - active version number for the TypeDef
        versionName - name for the active version of the TypeDef
      • EntityDef

        public EntityDef​(EntityDef template)
        Copy/clone constructor copies the values from the supplied template.
        Parameters:
        template - EntityDef
    • Method Detail

      • cloneFromSubclass

        public TypeDef cloneFromSubclass()
        Delegate the process of cloning to the subclass.
        Specified by:
        cloneFromSubclass in class TypeDef
        Returns:
        subclass of TypeDef
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class TypeDef
        Returns:
        JSON style description of variables.