java.lang.Object
org.odpi.openmetadata.viewservices.assetcatalog.beans.Element
Direct Known Subclasses:
AssetCatalogBean, AssetCatalogItemElement, Elements, Relationship

public class Element extends Object
Element object holds properties that are used for displaying details of an entity.
  • Constructor Details

    • Element

      public Element()
      Default constructor.
  • Method Details

    • getGuid

      public String getGuid()
      Return the asset unique identifier.
      Returns:
      String - unique identifier of the asset
    • setGuid

      public void setGuid(String guid)
      Set up the unique identifier of the asset.
      Parameters:
      guid - of the asset
    • getType

      public Type getType()
      Returns the type definition of the asset.
      Returns:
      the type definition of the asset
    • setType

      public void setType(Type type)
      Set up the type definition of the asset.
      Parameters:
      type - the type definition of the asset
    • getName

      public String getName()
      Returns the name of the asset.
      Returns:
      the name of the asset
    • setName

      public void setName(String name)
      Set up the name of the asset.
      Parameters:
      name - - the name of the asset
    • getCreatedBy

      public String getCreatedBy()
      Return the name of the user that created the asset.
      Returns:
      the name of the users that created the asset
    • setCreatedBy

      public void setCreatedBy(String createdBy)
      Set up the name of the user that created the asset.
      Parameters:
      createdBy - - the name of the user that created the asset
    • getCreateTime

      public Date getCreateTime()
      Returns the date when the asset has been created.
      Returns:
      date when for the asset creation
    • setCreateTime

      public void setCreateTime(Date createTime)
      Set up the date when the asset has been created.
      Parameters:
      createTime - - creation date of the asset
    • getUpdatedBy

      public String getUpdatedBy()
      Return the name of the user that updated the asset last time.
      Returns:
      string - the name of the user that updated the asset last time
    • setUpdatedBy

      public void setUpdatedBy(String updatedBy)
      Set up the name of the user that updated the asset last time.
      Parameters:
      updatedBy - the name of the user that updated the asset last time
    • getUpdateTime

      public Date getUpdateTime()
      Returns the date when the asset has been created.
      Returns:
      date - the date when the asset has been created
    • setUpdateTime

      public void setUpdateTime(Date updateTime)
      Set up the date when the asset has been created.
      Parameters:
      updateTime - - the date when the asset has been created
    • getVersion

      public Long getVersion()
      Returns the version of the asset.
      Returns:
      long - the version of the asset
    • setVersion

      public void setVersion(Long version)
      Set up the version of the asset.
      Parameters:
      version - - the version of the asset
    • getStatus

      public String getStatus()
      Returns the status of the asset.
      Returns:
      status
    • setStatus

      public void setStatus(String status)
      Set up the status of the asset.
      Parameters:
      status - - enum that describes the asset's status
    • getUrl

      public String getUrl()
      Returns the URL.
      Returns:
      the URL
    • setUrl

      public void setUrl(String url)
      Set up the URL.
      Parameters:
      url - the URL
    • getProperties

      public Map<String,String> getProperties()
      Returns the properties of the element.
      Returns:
      the properties of the element
    • setProperties

      public void setProperties(Map<String,String> properties)
      Set up the properties of the element.
      Parameters:
      properties - the properties of the element
    • getAdditionalProperties

      public Map<String,String> getAdditionalProperties()
      Returns the additional properties of the element.
      Returns:
      the additional properties of the element
    • setAdditionalProperties

      public void setAdditionalProperties(Map<String,String> additionalProperties)
      Set up the additional properties of the element.
      Parameters:
      additionalProperties - the additional properties of the element
    • getClassifications

      public List<Classification> getClassifications()
      Returns the classifications of the element.
      Returns:
      the classifications of the element
    • setClassifications

      public void setClassifications(List<Classification> classifications)
      Set up the classifications of the element.
      Parameters:
      classifications - the classifications of the element
    • getAnchorElement

      public Element getAnchorElement()
      Returns the anchor of the element.
      Returns:
      the anchor of the element
    • setAnchorElement

      public void setAnchorElement(Element anchorElement)
      Set up the anchor of the element.
      Parameters:
      anchorElement - the anchor of the element
    • getParentElement

      @Deprecated public Element getParentElement()
      Deprecated.
      Returns the anchor of the element.
      Returns:
      the anchor of the element
    • setParentElement

      @Deprecated public void setParentElement(Element anchorElement)
      Deprecated.
      Set up the anchor of the element.
      Parameters:
      anchorElement - the anchor of the element
    • getOrigin

      public ElementOrigin getOrigin()
      Returns the origin of the element.
      Returns:
      the origin of the element
    • setOrigin

      public void setOrigin(ElementOrigin origin)
      Set up the origin of the element.
      Parameters:
      origin - the origin of the element
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int