Package com.boomi.connector.api.ui
Class AllowedValue
- java.lang.Object
-
- com.boomi.connector.api.ui.AllowedValue
-
- All Implemented Interfaces:
Serializable
public class AllowedValue extends Object implements Serializable
Specification for an allowed value in a field.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>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static AllowedValue
EMPTY_INSTANCE
protected String
label
protected String
value
-
Constructor Summary
Constructors Constructor Description AllowedValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllowedValue
copy()
Deep copies the fields of the this model into a new instance of this class 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.protected AllowedValue
copy(AllowedValue nobj, boolean isDeep)
Copies the fields of the this model (optionally deeply) into the given instance 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.
-
-
-
Field Detail
-
value
protected String value
-
label
protected String label
-
EMPTY_INSTANCE
public static final AllowedValue EMPTY_INSTANCE
-
-
Method Detail
-
getValue
public String getValue()
The allowed value, which must be valid for the data type of the owning BrowseField.- Returns:
- possible object is
String
-
setValue
public void setValue(String value)
Sets the value of the value property.- Parameters:
value
- allowed object isString
-
getLabel
public String getLabel()
Optional text string which will be displayed in the GUI for this value. If not defined, the value itself will be used.- Returns:
- possible object is
String
-
setLabel
public void setLabel(String value)
Sets the value of the label property.- Parameters:
value
- allowed object isString
-
copy
public AllowedValue copy()
Deep copies the fields of the this model into a new instance of this class and returns it.
-
copy
public AllowedValue copy(boolean isDeep)
Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.
-
copy
protected AllowedValue copy(AllowedValue nobj, boolean isDeep)
Copies the fields of the this model (optionally deeply) into the given instance and returns it.
-
withValue
public AllowedValue withValue(String newValue)
Sets the value property to the given newValue and returns this instance.
-
withLabel
public AllowedValue withLabel(String newValue)
Sets the label property to the given newValue and returns this instance.
-
-