public class VirtualConnection extends Connection
A virtual connection is for an asset that provides data by delegating requests to one or more other connections. it maintains a list of the connections that are used by its asset. These are referred to as embedded connections.
  • Constructor Details

    • VirtualConnection

      public VirtualConnection()
      Default constructor
    • VirtualConnection

      public VirtualConnection(VirtualConnection templateVirtualConnection)
      Copy/clone constructor.
      Parameters:
      templateVirtualConnection - element to copy
  • Method Details

    • getVirtualConnectionType

      public static ElementType getVirtualConnectionType()
      Return the standard type for a connection type.
      Returns:
      ElementType object
    • 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()
      Standard toString method.
      Overrides:
      toString in class Connection
      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 Connection
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Hash of properties
      Overrides:
      hashCode in class Connection
      Returns:
      int