Class AssetElementOrigin

java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
org.odpi.openmetadata.frameworks.connectors.properties.AssetElementOrigin

public class AssetElementOrigin extends AssetPropertyElementBase
The ElementType bean provides details of the type information associated with a metadata element.
  • Constructor Details

    • AssetElementOrigin

      public AssetElementOrigin(ElementOrigin elementBean)
      Bean constructor accepts bean version of the AssetElementOrigin to provide the values
      Parameters:
      elementBean - bean containing properties
    • AssetElementOrigin

      public AssetElementOrigin(AssetElementOrigin template)
      Copy/clone constructor
      Parameters:
      template - type to clone
  • Method Details

    • getElementBean

      protected ElementOrigin getElementBean()
      Clone the bean as part of the deep clone constructor.
      Returns:
      cloned element bean
    • getSourceServer

      public String getSourceServer()
      Return the name of the server where the element was retrieved from. Typically, this is a server where the OMAS interfaces are activated. If no name is known for the server then null is returned.
      Returns:
      elementSourceServerURL the url of the server where the element came from
    • getOriginCategory

      public ElementOriginCategory getOriginCategory()
      Return the origin of the metadata element.
      Returns:
      ElementOriginCategory enum
    • getHomeMetadataCollectionId

      public String getHomeMetadataCollectionId()
      Returns the OMRS identifier for the metadata collection that is managed by the repository where the element originates (its home repository).
      Returns:
      String metadata collection id
    • getHomeMetadataCollectionName

      public String getHomeMetadataCollectionName()
      Return the name of the metadata collection that this asset belongs to.
      Returns:
      name string
    • getLicense

      public String getLicense()
      Return the license associated with this metadata element (null means none).
      Returns:
      string license name
    • 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 AssetPropertyElementBase
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Create a hash code for this element type.
      Overrides:
      hashCode in class AssetPropertyElementBase
      Returns:
      int hash code