Class Field

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class Field
    extends Object
    implements Serializable, Cloneable

    A key-value pair that describes a property of a pipeline object. The value is specified as either a string value (StringValue) or a reference to another object (RefValue) but not as both.

    See Also:
    Serialized Form
    • Constructor Detail

      • Field

        public Field()
    • Method Detail

      • setKey

        public void setKey​(String key)

        The field identifier.

        Parameters:
        key - The field identifier.
      • getKey

        public String getKey()

        The field identifier.

        Returns:
        The field identifier.
      • withKey

        public Field withKey​(String key)

        The field identifier.

        Parameters:
        key - The field identifier.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setStringValue

        public void setStringValue​(String stringValue)

        The field value, expressed as a String.

        Parameters:
        stringValue - The field value, expressed as a String.
      • getStringValue

        public String getStringValue()

        The field value, expressed as a String.

        Returns:
        The field value, expressed as a String.
      • withStringValue

        public Field withStringValue​(String stringValue)

        The field value, expressed as a String.

        Parameters:
        stringValue - The field value, expressed as a String.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRefValue

        public void setRefValue​(String refValue)

        The field value, expressed as the identifier of another object.

        Parameters:
        refValue - The field value, expressed as the identifier of another object.
      • getRefValue

        public String getRefValue()

        The field value, expressed as the identifier of another object.

        Returns:
        The field value, expressed as the identifier of another object.
      • withRefValue

        public Field withRefValue​(String refValue)

        The field value, expressed as the identifier of another object.

        Parameters:
        refValue - The field value, expressed as the identifier of another object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object