Class 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.String id  
      protected java.lang.String label  
      protected java.lang.String mergeMode  
      protected java.lang.Boolean selected  
      protected 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.String getId()
      Gets the value of the id property.
      java.lang.String getLabel()
      Gets the value of the label property.
      java.lang.String getMergeMode()
      Gets the value of the mergeMode property.
      java.util.List<Value> getValue()
      Gets the value of the value property.
      boolean isSelected()
      Gets the value of the selected property.
      void setId​(java.lang.String value)
      Sets the value of the id property.
      void setLabel​(java.lang.String value)
      Sets the value of the label property.
      void setMergeMode​(java.lang.String value)
      Sets the value of the mergeMode property.
      void setSelected​(java.lang.Boolean value)
      Sets the value of the selected property.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • Option

        public Option()
    • 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 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

      • 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 is String
      • 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 is String
      • 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 is Boolean
      • 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 is String