public class Field
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
The field identifier.
|
private java.lang.String |
refValue
The field value, expressed as the identifier of another object.
|
private java.lang.String |
stringValue
The field value, expressed as a String.
|
Constructor and Description |
---|
Field() |
Modifier and Type | Method and Description |
---|---|
Field |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The field identifier.
|
java.lang.String |
getRefValue()
The field value, expressed as the identifier of another object.
|
java.lang.String |
getStringValue()
The field value, expressed as a String.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The field identifier.
|
void |
setRefValue(java.lang.String refValue)
The field value, expressed as the identifier of another object.
|
void |
setStringValue(java.lang.String stringValue)
The field value, expressed as a String.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Field |
withKey(java.lang.String key)
The field identifier.
|
Field |
withRefValue(java.lang.String refValue)
The field value, expressed as the identifier of another object.
|
Field |
withStringValue(java.lang.String stringValue)
The field value, expressed as a String.
|
private java.lang.String key
The field identifier.
private java.lang.String stringValue
The field value, expressed as a String.
private java.lang.String refValue
The field value, expressed as the identifier of another object.
public void setKey(java.lang.String key)
The field identifier.
key
- The field identifier.public java.lang.String getKey()
The field identifier.
public Field withKey(java.lang.String key)
The field identifier.
key
- The field identifier.public void setStringValue(java.lang.String stringValue)
The field value, expressed as a String.
stringValue
- The field value, expressed as a String.public java.lang.String getStringValue()
The field value, expressed as a String.
public Field withStringValue(java.lang.String stringValue)
The field value, expressed as a String.
stringValue
- The field value, expressed as a String.public void setRefValue(java.lang.String refValue)
The field value, expressed as the identifier of another object.
refValue
- The field value, expressed as the identifier of another object.public java.lang.String getRefValue()
The field value, expressed as the identifier of another object.
public Field withRefValue(java.lang.String refValue)
The field value, expressed as the identifier of another object.
refValue
- The field value, expressed as the identifier of another object.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Field clone()
clone
in class java.lang.Object