public class Option extends Positioned
Java class for option complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="option">
<complexContent>
<extension base="{http://www.hybris.com/cockpitng/config/common}positioned">
<sequence>
<element name="value" type="{http://www.hybris.com/cockpitng/component/valuechooser}value" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="label" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="selected" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="merge-mode" type="{http://www.w3.org/2001/XMLSchema}string" />
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected String |
label |
protected String |
mergeMode |
protected Boolean |
selected |
protected List<Value> |
value |
position| Constructor and Description |
|---|
Option() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Gets the value of the id property.
|
String |
getLabel()
Gets the value of the label property.
|
String |
getMergeMode()
Gets the value of the mergeMode property.
|
List<Value> |
getValue()
Gets the value of the value property.
|
boolean |
isSelected()
Gets the value of the selected property.
|
void |
setId(String value)
Sets the value of the id property.
|
void |
setLabel(String value)
Sets the value of the label property.
|
void |
setMergeMode(String value)
Sets the value of the mergeMode property.
|
void |
setSelected(Boolean value)
Sets the value of the selected property.
|
getPosition, setPositionprotected String id
protected String label
protected Boolean selected
protected String mergeMode
public List<Value> getValue()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the value property.
For example, to add a new item, do as follows:
getValue().add(newItem);
Objects of the following type(s) are allowed in the list
Value
public void setId(String value)
value - allowed object is
Stringpublic String getLabel()
Stringpublic void setLabel(String value)
value - allowed object is
Stringpublic boolean isSelected()
Booleanpublic void setSelected(Boolean value)
value - allowed object is
Booleanpublic String getMergeMode()
StringCopyright © 2018. All rights reserved.