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 Summary

    Constructors
    Constructor
    Description
    Copy/clone constructor
    AssetElementOrigin(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementOrigin elementBean)
    Bean constructor accepts bean version of the AssetElementOrigin to provide the values
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Returns the OMRS identifier for the metadata collection that is managed by the repository where the element originates (its home repository).
    Return the name of the metadata collection that this asset belongs to.
    Return the license associated with this metadata element (null means none).
    org.odpi.openmetadata.frameworks.openmetadata.enums.ElementOriginCategory
    Return the origin of the metadata element.
    Return the name of the server where the element was retrieved from.
    int
    Create a hash code for this element type.
    Standard toString method.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AssetElementOrigin

      public AssetElementOrigin(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.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

    • 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 org.odpi.openmetadata.frameworks.openmetadata.enums.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