Class StepConfiguration

java.lang.Object
com.genologics.ri.step.StepConfiguration
All Implemented Interfaces:
LimsLink<ProtocolStep>, Linkable<ProtocolStep>, Locatable, Serializable

public class StepConfiguration extends Object implements LimsLink<ProtocolStep>, Serializable
Identifies the configuration information for the step run.
See Also:
  • Field Details

    • protocolStepUri

      protected URI protocolStepUri
      The URI of the protocol step configuration.
    • stepName

      protected String stepName
      The name of the protocol step.
  • Constructor Details

    • StepConfiguration

      public StepConfiguration()
      Creates an empty step configuration.
    • StepConfiguration

      public StepConfiguration(URI protocolStepUri)
      Creates a step configuration with the given protocol step URI.
      Parameters:
      protocolStepUri - The URI of the protocol step.
    • StepConfiguration

      public StepConfiguration(URI protocolStepUri, String stepName)
      Creates a step configuration with the given protocol step URI and name.
      Parameters:
      protocolStepUri - The URI of the protocol step.
      stepName - The name of the protocol step.
    • StepConfiguration

      public StepConfiguration(Linkable<ProtocolStep> step)
      Creates a step configuration from a linkable protocol step.
      Parameters:
      step - The linkable protocol step to extract the URI from.
      Throws:
      NullPointerException - if step is null.
    • StepConfiguration

      public StepConfiguration(ProtocolStep step)
      Creates a step configuration from a protocol step.
      Parameters:
      step - The protocol step to extract the URI and name from.
      Throws:
      NullPointerException - if step is null.
  • Method Details

    • getProtocolStepUri

      public URI getProtocolStepUri()
      Gets the protocol step URI.
      Returns:
      The protocol step URI.
    • setProtocolStepUri

      public void setProtocolStepUri(URI protocolStepUri)
      Sets the protocol step URI.
      Parameters:
      protocolStepUri - The protocol step URI.
    • setProtocolStep

      public void setProtocolStep(Linkable<ProtocolStep> protocolStep)
      Sets the protocol step from a linkable object.
      Parameters:
      protocolStep - The linkable protocol step to extract the URI from.
    • getStepName

      public String getStepName()
      Gets the name of the protocol step.
      Returns:
      The protocol step name.
    • setStepName

      public void setStepName(String stepName)
      Sets the name of the protocol step.
      Parameters:
      stepName - The protocol step name.
    • getUri

      public URI getUri()
      Get the URI of the object we are linking to.
      Specified by:
      getUri in interface LimsLink<ProtocolStep>
      Specified by:
      getUri in interface Locatable
      Returns:
      The URI.
    • setUri

      public void setUri(URI uri)
      Set the URI of this object.
      Specified by:
      setUri in interface Locatable
      Parameters:
      uri - The new URI.
    • getEntityClass

      public Class<ProtocolStep> getEntityClass()
      Get the class of the true, full LIMS entity this object links to.
      Specified by:
      getEntityClass in interface LimsLink<ProtocolStep>
      Returns:
      The real object class.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: