Class EntityDef

All Implemented Interfaces:
Serializable

public class EntityDef extends TypeDef
Structural definition of an entity.
See Also:
  • Constructor Details

  • Method Details

    • creator

      public static EntityDef.EntityDefBuilder<?,?> creator(String name, List<AttributeDef> attributes)
      Build up an entity definition from the provided parameters and default settings for all other parameters. NOTE: INTERNAL USE ONLY.
      Parameters:
      name - name of the entity definition
      attributes - definitions for each attribute within the entity definition
      Returns:
      a builder for an entity definition
    • creator

      public static EntityDef.EntityDefBuilder<?,?> creator(String name, List<AttributeDef> attributes, List<String> superTypes)
      Build up an entity definition from the provided parameters and default settings for all other parameters. NOTE: INTERNAL USE ONLY.
      Parameters:
      name - name of the entity definition
      attributes - definitions for each attribute within the entity definition
      superTypes - names of the types that this entity definition should inherit from
      Returns:
      a builder for an entity definition
    • builder

      public static EntityDef.EntityDefBuilder<?,?> builder()
    • toBuilder

      public EntityDef.EntityDefBuilder<?,?> toBuilder()
    • getRelationshipAttributeDefs

      public List<RelationshipAttributeDef> getRelationshipAttributeDefs()
      Relationships that can exist for the entity.
    • getSubTypes

      public List<String> getSubTypes()
      Subtypes of this entity type.
    • getSuperTypes

      public List<String> getSuperTypes()
      Supertypes of this entity type.
    • getBusinessAttributeDefs

      public Map<String,Object> getBusinessAttributeDefs()
      Unused.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class TypeDef
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class TypeDef
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class TypeDef
    • toString

      public String toString()
      Description copied from class: AtlanObject
      Overrides:
      toString in class TypeDef
    • getCategory

      public AtlanTypeCategory getCategory()
      Fixed category for entity typedefs.
      Overrides:
      getCategory in class TypeDef