Class AnyValueType

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

    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.

    Java class for AnyValueType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="AnyValueType">
         <restriction base="{}anyType">
             <element name="value" type="{}anyType" minOccurs="0"/>
             <element name="textValue" type="{}string" minOccurs="0"/>
    See Also:
    Serialized Form
    • Field Detail

      • value

        protected Object value
      • textValue

        protected String textValue

        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 AnyValueType instance.
      • AnyValueType

        public AnyValueType​(AnyValueType o)
        Creates a new AnyValueType instance by deeply copying a given AnyValueType instance.
        o - The instance to copy.
        NullPointerException - if o is null.
    • Method Detail

      • getValue

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

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

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

        public void setTextValue​(String value)
        Sets the value of the textValue property.
        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
        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()
        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.
        clone in class Object
        A deep copy of this object.