Direct Known Subclasses:
OpenMetadataClassificationDef, OpenMetadataEntityDef, OpenMetadataRelationshipDef

public abstract class OpenMetadataTypeDef extends OpenMetadataTypeDefSummary
The OpenMetadataTypeDef is the base class for objects that store the properties of an open metadata type definition (call ed a OpenMetadataTypeDef).

The different categories of Typedefs are listed in OpenMetadataTypeDefCategory.

  • Field Details

  • Constructor Details

    • OpenMetadataTypeDef

      protected OpenMetadataTypeDef()
      Default constructor
    • OpenMetadataTypeDef

      protected OpenMetadataTypeDef(OpenMetadataTypeDefCategory category)
      Minimal constructor is passed the category of the typedef being constructed. The rest of the properties are null.
      Parameters:
      category - OpenMetadataTypeDefCategory enum
    • OpenMetadataTypeDef

      protected OpenMetadataTypeDef(OpenMetadataTypeDef template)
      Copy/clone constructor copies the values from the supplied template.
      Parameters:
      template - OpenMetadataTypeDef
  • Method Details

    • cloneFromSubclass

      public abstract OpenMetadataTypeDef cloneFromSubclass()
      Delegate the process of cloning to the subclass.
      Returns:
      subclass of OpenMetadataTypeDef
    • getSuperType

      public OpenMetadataTypeDefLink getSuperType()
      Return the super type for the OpenMetadataTypeDef (or null if top-level)
      Returns:
      OpenMetadataTypeDefLink for the super type
    • setSuperType

      public void setSuperType(OpenMetadataTypeDefLink superType)
      Set up supertype for the OpenMetadataTypeDef. Only single inheritance is supported. Use null if this type is top-level.
      Parameters:
      superType - OpenMetadataTypeDefLink for the super type
    • getDescription

      public String getDescription()
      Return the description of this OpenMetadataTypeDef.
      Returns:
      String description
    • setDescription

      public void setDescription(String description)
      Set up the description of this OpenMetadataTypeDef.
      Parameters:
      description - String
    • getDescriptionGUID

      public String getDescriptionGUID()
      Return the unique identifier (guid) of the valid value that describes this OpenMetadataTypeDef.
      Returns:
      String guid
    • setDescriptionGUID

      public void setDescriptionGUID(String descriptionGUID)
      Set up the unique identifier (guid) of the valid value definition that describes this OpenMetadataTypeDef.
      Parameters:
      descriptionGUID - String guid
    • getDescriptionWiki

      public String getDescriptionWiki()
      Return the URL to the wiki page that gives more information for this type.
      Returns:
      url string
    • setDescriptionWiki

      public void setDescriptionWiki(String descriptionWiki)
      Set up the URL to the wiki page that gives more information for this type.
      Parameters:
      descriptionWiki - url string
    • getOrigin

      public String getOrigin()
      Return the unique identifier for metadata collection id where this OpenMetadataTypeDef came from.
      Returns:
      String guid
    • setOrigin

      public void setOrigin(String origin)
      Set up the unique identifier for metadata collection id where this OpenMetadataTypeDef came from.
      Parameters:
      origin - String guid
    • getCreatedBy

      public String getCreatedBy()
      Return the user name of the person that created this OpenMetadataTypeDef.
      Returns:
      String name
    • setCreatedBy

      public void setCreatedBy(String createdBy)
      Set up the user name of the person that created this OpenMetadataTypeDef.
      Parameters:
      createdBy - String name
    • getUpdatedBy

      public String getUpdatedBy()
      Return the user name of the person that last updated this OpenMetadataTypeDef.
      Returns:
      String name
    • setUpdatedBy

      public void setUpdatedBy(String updatedBy)
      Set up the user name of the person that last updated this OpenMetadataTypeDef.
      Parameters:
      updatedBy - String name
    • getCreateTime

      public Date getCreateTime()
      Return the date/time that this OpenMetadataTypeDef was created.
      Returns:
      Date
    • setCreateTime

      public void setCreateTime(Date createTime)
      Set up the date/time that this OpenMetadataTypeDef was created.
      Parameters:
      createTime - Date
    • getUpdateTime

      public Date getUpdateTime()
      Return the date/time that this OpenMetadataTypeDef was last updated.
      Returns:
      Date
    • setUpdateTime

      public void setUpdateTime(Date updateTime)
      Set up the date/time that this OpenMetadataTypeDef was last updated.
      Parameters:
      updateTime - Date
    • getOptions

      public Map<String,String> getOptions()
      Return the options for this OpenMetadataTypeDef. These are private properties used by the processors of this OpenMetadataTypeDef and ignored by the OMRS.
      Returns:
      Map from String to String
    • setOptions

      public void setOptions(Map<String,String> options)
      Set up the options for this OpenMetadataTypeDef. These are private properties used by the processors of this OpenMetadataTypeDef and ignored by the OMRS.
      Parameters:
      options - Map from String to String
    • getExternalStandardMappings

      public List<ExternalStandardTypeMapping> getExternalStandardMappings()
      Return the list of mappings to external standards.
      Returns:
      ExternalStandardMappings list
    • setExternalStandardMappings

      public void setExternalStandardMappings(List<ExternalStandardTypeMapping> externalStandardTypeMappings)
      Set up the list of mappings to external standards.
      Parameters:
      externalStandardTypeMappings - ExternalStandardMappings list
    • getValidElementStatusList

      public List<ElementStatus> getValidElementStatusList()
      Return the list of valid statuses for an instance of this OpenMetadataTypeDef.
      Returns:
      list of valid statuses
    • setValidElementStatusList

      public void setValidElementStatusList(List<ElementStatus> validElementStatusList)
      Set up the list of valid instance statuses supported by this OpenMetadataTypeDef.
      Parameters:
      validElementStatusList - InstanceStatus Array
    • getInitialStatus

      public ElementStatus getInitialStatus()
      Return the initial status setting for an instance of this type.
      Returns:
      InstanceStatus enum
    • setInitialStatus

      public void setInitialStatus(ElementStatus initialStatus)
      Set up the initial status setting for an instance of this type.
      Parameters:
      initialStatus - InstanceStatus enum
    • getAttributeDefinitions

      public List<OpenMetadataTypeDefAttribute> getAttributeDefinitions()
      Return the list of typeDefAttributes that are either new or changing.
      Returns:
      list of OpenMetadataTypeDefAttribute
    • setAttributeDefinitions

      public void setAttributeDefinitions(List<OpenMetadataTypeDefAttribute> attributeDefinitions)
      Set up the list of AttributeDefs that define the valid properties for this type of classification.
      Parameters:
      attributeDefinitions - AttributeDefs list
    • toString

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

      public boolean equals(Object objectToCompare)
      Validate that an object is equal depending on their stored values.
      Overrides:
      equals in class OpenMetadataTypeDefSummary
      Parameters:
      objectToCompare - object
      Returns:
      boolean result
    • hashCode

      public int hashCode()
      Return a hash code based on the values of this object.
      Overrides:
      hashCode in class OpenMetadataTypeDefSummary
      Returns:
      in hash code