public class AllowedValue extends Object implements Serializable
Java class for AllowedValue complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AllowedValue"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/> </sequence> <attribute name="label" type="{http://www.w3.org/2001/XMLSchema}normalizedString" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
static AllowedValue |
EMPTY_INSTANCE |
protected String |
label |
protected String |
value |
Constructor and Description |
---|
AllowedValue() |
Modifier and Type | Method and Description |
---|---|
AllowedValue |
copy()
Deep copies the fields of the this model into a new instance of this class and returns it.
|
protected AllowedValue |
copy(AllowedValue nobj,
boolean isDeep)
Copies the fields of the this model (optionally deeply) into the given instance and returns it.
|
AllowedValue |
copy(boolean isDeep)
Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.
|
boolean |
equals(Object o) |
String |
getLabel()
Optional text string which will be displayed in the GUI for this value.
|
String |
getValue()
The allowed value, which must be valid for the data type of the owning BrowseField.
|
int |
hashCode() |
void |
setLabel(String value)
Sets the value of the label property.
|
void |
setValue(String value)
Sets the value of the value property.
|
String |
toString() |
AllowedValue |
withLabel(String newValue)
Sets the label property to the given newValue and returns this instance.
|
AllowedValue |
withValue(String newValue)
Sets the value property to the given newValue and returns this instance.
|
protected String value
protected String label
public static final AllowedValue EMPTY_INSTANCE
public String getValue()
String
public void setValue(String value)
value
- allowed object is
String
public String getLabel()
String
public void setLabel(String value)
value
- allowed object is
String
public AllowedValue copy()
public AllowedValue copy(boolean isDeep)
protected AllowedValue copy(AllowedValue nobj, boolean isDeep)
public AllowedValue withValue(String newValue)
public AllowedValue withLabel(String newValue)