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 AllowedValueEMPTY_INSTANCEprotected Stringlabelprotected Stringvalue
-
Constructor Summary
Constructors Constructor Description AllowedValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllowedValuecopy()Deep copies the fields of the this model into a new instance of this class and returns it.AllowedValuecopy(boolean isDeep)Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.protected AllowedValuecopy(AllowedValue nobj, boolean isDeep)Copies the fields of the this model (optionally deeply) into the given instance and returns it.booleanequals(Object o)StringgetLabel()Optional text string which will be displayed in the GUI for this value.StringgetValue()The allowed value, which must be valid for the data type of the owning BrowseField.inthashCode()voidsetLabel(String value)Sets the value of the label property.voidsetValue(String value)Sets the value of the value property.StringtoString()AllowedValuewithLabel(String newValue)Sets the label property to the given newValue and returns this instance.AllowedValuewithValue(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.
-
-