Class Option
- java.lang.Object
-
- com.hybris.cockpitng.core.config.impl.jaxb.hybris.commonconfig.Positioned
-
- com.hybris.cockpitng.config.valuechooser.jaxb.Option
-
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>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringidprotected java.lang.Stringlabelprotected java.lang.StringmergeModeprotected java.lang.Booleanselectedprotected java.util.List<Value>value-
Fields inherited from class com.hybris.cockpitng.core.config.impl.jaxb.hybris.commonconfig.Positioned
position
-
-
Constructor Summary
Constructors Constructor Description Option()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()Gets the value of the id property.java.lang.StringgetLabel()Gets the value of the label property.java.lang.StringgetMergeMode()Gets the value of the mergeMode property.java.util.List<Value>getValue()Gets the value of the value property.booleanisSelected()Gets the value of the selected property.voidsetId(java.lang.String value)Sets the value of the id property.voidsetLabel(java.lang.String value)Sets the value of the label property.voidsetMergeMode(java.lang.String value)Sets the value of the mergeMode property.voidsetSelected(java.lang.Boolean value)Sets the value of the selected property.-
Methods inherited from class com.hybris.cockpitng.core.config.impl.jaxb.hybris.commonconfig.Positioned
getPosition, setPosition
-
-
-
-
Field Detail
-
value
protected java.util.List<Value> value
-
id
protected java.lang.String id
-
label
protected java.lang.String label
-
selected
protected java.lang.Boolean selected
-
mergeMode
protected java.lang.String mergeMode
-
-
Method Detail
-
getValue
public java.util.List<Value> getValue()
Gets the value of the value property.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
setmethod 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
-
getId
public java.lang.String getId()
Gets the value of the id property.- Returns:
- possible object is
String
-
setId
public void setId(java.lang.String value)
Sets the value of the id property.- Parameters:
value- allowed object isString
-
getLabel
public java.lang.String getLabel()
Gets the value of the label property.- Returns:
- possible object is
String
-
setLabel
public void setLabel(java.lang.String value)
Sets the value of the label property.- Parameters:
value- allowed object isString
-
isSelected
public boolean isSelected()
Gets the value of the selected property.- Returns:
- possible object is
Boolean
-
setSelected
public void setSelected(java.lang.Boolean value)
Sets the value of the selected property.- Parameters:
value- allowed object isBoolean
-
getMergeMode
public java.lang.String getMergeMode()
Gets the value of the mergeMode property.- Returns:
- possible object is
String
-
setMergeMode
public void setMergeMode(java.lang.String value)
Sets the value of the mergeMode property.- Parameters:
value- allowed object isString
-
-