public class Field extends Object implements Serializable
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.
Constructor and Description |
---|
Field() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getKey()
The field identifier.
|
String |
getRefValue()
The field value, expressed as the identifier of another object.
|
String |
getStringValue()
The field value, expressed as a String.
|
int |
hashCode() |
void |
setKey(String key)
The field identifier.
|
void |
setRefValue(String refValue)
The field value, expressed as the identifier of another object.
|
void |
setStringValue(String stringValue)
The field value, expressed as a String.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Field |
withKey(String key)
The field identifier.
|
Field |
withRefValue(String refValue)
The field value, expressed as the identifier of another object.
|
Field |
withStringValue(String stringValue)
The field value, expressed as a String.
|
public String getKey()
Constraints:
Length: 1 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setKey(String key)
Constraints:
Length: 1 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
key
- The field identifier.public Field withKey(String key)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
key
- The field identifier.public String getStringValue()
Constraints:
Length: 0 - 10240
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setStringValue(String stringValue)
Constraints:
Length: 0 - 10240
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
stringValue
- The field value, expressed as a String.public Field withStringValue(String stringValue)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10240
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
stringValue
- The field value, expressed as a String.public String getRefValue()
Constraints:
Length: 1 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setRefValue(String refValue)
Constraints:
Length: 1 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
refValue
- The field value, expressed as the identifier of another object.public Field withRefValue(String refValue)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
refValue
- The field value, expressed as the identifier of another object.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.