Class 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
    • Constructor Detail

      • AllowedValue

        public AllowedValue()
    • 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 is String
      • 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 is String
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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.