Class AnyValueType

  • All Implemented Interfaces:
    JaxbVisitable, Serializable, Cloneable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode
    Direct Known Subclasses:
    NamedValueType

    public class AnyValueType
    extends Object
    implements Serializable, Cloneable, JaxbVisitable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode
    Any value (property, reference, container). EXPERIMENTAL This is a workaround to avoid using xsd:anyType directly in a container. It is mapped to a property; however, it cannot be always serialized as a property. <p>Java class for AnyValueType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="AnyValueType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/&gt; &lt;element name="textValue" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
    See Also:
    Serialized Form
    • Field Detail

      • value

        protected Object value
      • textValue

        protected String textValue
      • COMPLEX_TYPE

        public static final QName COMPLEX_TYPE
      • F_VALUE

        public static final ItemName F_VALUE
      • F_TEXT_VALUE

        public static final ItemName F_TEXT_VALUE
    • Constructor Detail

      • AnyValueType

        public AnyValueType()
        Creates a new {@code AnyValueType} instance.
      • AnyValueType

        public AnyValueType​(AnyValueType o)
        Creates a new {@code AnyValueType} instance by deeply copying a given {@code AnyValueType} instance.
        Parameters:
        o - The instance to copy.
        Throws:
        NullPointerException - if {@code o} is {@code null}.
    • Method Detail

      • getValue

        public Object getValue()
        Gets the value of the value property.
        Returns:
        possible object is Object
      • setValue

        public void setValue​(Object value)
        Sets the value of the value property.
        Parameters:
        value - allowed object is Object
      • getTextValue

        public String getTextValue()
        Gets the value of the textValue property.
        Returns:
        possible object is String
      • setTextValue

        public void setTextValue​(String value)
        Sets the value of the textValue property.
        Parameters:
        value - allowed object is String
      • toString

        public String toString()
        Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin
        Overrides:
        toString in class Object
      • hashCode

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              Object object,
                              org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
        Specified by:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals
      • clone

        public AnyValueType clone()
        Creates and returns a deep copy of this object.
        Overrides:
        clone in class Object
        Returns:
        A deep copy of this object.