java.lang.Object
org.odpi.openmetadata.accessservices.digitalarchitecture.metadataelements.ConnectionElement
All Implemented Interfaces:
MetadataElement

public class ConnectionElement extends Object implements MetadataElement
ConnectionElement contains the properties and header for a connection retrieved from the metadata repository.
  • Constructor Details

    • ConnectionElement

      public ConnectionElement()
      Default constructor
    • ConnectionElement

      public ConnectionElement(ConnectionElement template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getElementHeader

      public ElementHeader getElementHeader()
      Return the element header associated with the properties.
      Specified by:
      getElementHeader in interface MetadataElement
      Returns:
      element header object
    • setElementHeader

      public void setElementHeader(ElementHeader elementHeader)
      Set up the element header associated with the properties.
      Specified by:
      setElementHeader in interface MetadataElement
      Parameters:
      elementHeader - element header object
    • getConnectionProperties

      public ConnectionProperties getConnectionProperties()
      Return the properties for the connection.
      Returns:
      asset properties (using appropriate subclass)
    • setConnectionProperties

      public void setConnectionProperties(ConnectionProperties connectionProperties)
      Set up the properties for the connection.
      Parameters:
      connectionProperties - asset properties
    • setConnectorType

      public void setConnectorType(ElementStub connectorType)
      Set up the connector type properties for this Connection.
      Parameters:
      connectorType - ConnectorType properties object
    • getConnectorType

      public ElementStub getConnectorType()
      Returns a copy of the properties for this connection's connector type. A null means there is no connection type.
      Returns:
      connector type for the connection
    • setEndpoint

      public void setEndpoint(ElementStub endpoint)
      Set up the endpoint properties for this Connection.
      Parameters:
      endpoint - Endpoint properties object
    • getEndpoint

      public ElementStub getEndpoint()
      Returns a copy of the properties for this connection's endpoint. Null means no endpoint information available.
      Returns:
      endpoint for the connection
    • getEmbeddedConnections

      public List<EmbeddedConnection> getEmbeddedConnections()
      Return the list of embedded connections for this virtual connection.
      Returns:
      list of EmbeddedConnection objects
    • setEmbeddedConnections

      public void setEmbeddedConnections(List<EmbeddedConnection> embeddedConnections)
      Set up the list of embedded connections for this virtual connection.
      Parameters:
      embeddedConnections - list of EmbeddedConnection objects
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class Object
      Returns:
      return string containing the property names and values
    • equals

      public boolean equals(Object objectToCompare)
      Return comparison result based on the content of the properties.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class Object
      Returns:
      int hash code