Class Interaction

All Implemented Interfaces:
java.lang.Cloneable, ConnectorRestrictions, Drawable, Groupable, Referenceable, Referenceable.Annotatable, Referenceable.Citable, Referenceable.Evidenceable, Xrefable

public class Interaction
extends LineElement
implements Xrefable
This class stores information for an Interaction pathway element.
Author:
finterly
  • Field Details

    • xref

      private org.bridgedb.Xref xref
  • Constructor Details

    • Interaction

      public Interaction​(org.bridgedb.Xref xref)
      Instantiates an Interaction pathway element given all possible parameters.
      Parameters:
      xref - the interaction Xref.
    • Interaction

      public Interaction()
      Instantiates an Interaction pathway element given all required parameters except xref.
  • Method Details

    • getObjectType

      public ObjectType getObjectType()
      Returns the object type of this pathway element.
      Specified by:
      getObjectType in interface Drawable
      Specified by:
      getObjectType in class PathwayObject
      Returns:
      the object type.
    • getXref

      public org.bridgedb.Xref getXref()
      Returns the Xref for this interaction.
      Specified by:
      getXref in interface Xrefable
      Returns:
      xref the xref of interaction.
    • setXref

      public void setXref​(org.bridgedb.Xref v)
      Sets the Xref for this interaction.
      Specified by:
      setXref in interface Xrefable
      Parameters:
      v - the xref to set for this interaction.
    • copyValuesFrom

      public void copyValuesFrom​(Interaction src)
      Copies values from the given source pathway element.
      Parameters:
      src - the source pathway element.
    • copy

      public CopyElement copy()
      Copies this pathway element.
      Specified by:
      copy in class PathwayElement
      Returns:
      the copyElement for the new pathway element and this source pathway element.
    • getStaticPropertyKeys

      public java.util.Set<StaticProperty> getStaticPropertyKeys()
      Returns all static properties for this pathway object.
      Overrides:
      getStaticPropertyKeys in class LineElement
      Returns:
      result the set of static property for this pathway object.
    • getStaticProperty

      public java.lang.Object getStaticProperty​(StaticProperty key)
      Returns static property value for given key.
      Overrides:
      getStaticProperty in class LineElement
      Parameters:
      key - the key.
      Returns:
      the static property value.
    • setStaticProperty

      public void setStaticProperty​(StaticProperty key, java.lang.Object value)
      This works so that o.setNotes(x) is the equivalent of o.setProperty("Notes", x); Value may be null in some cases, e.g. graphRef
      Overrides:
      setStaticProperty in class LineElement
      Parameters:
      key - the key.
      value - the static property value.