Class NamedValueType

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

    public class NamedValueType
    extends AnyValueType
    implements Serializable, Cloneable, JaxbVisitable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode
    Any value (property, reference, container) along with its name. 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 NamedValueType complex type.

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

     <complexType name="NamedValueType">
         <extension base="{}AnyValueType">
             <element name="name" type="{}QName" minOccurs="0"/>
    See Also:
    Serialized Form
    • Field Detail

      • name

        protected QName name

        public static final QName COMPLEX_TYPE
      • F_NAME

        public static final ItemName F_NAME
    • Constructor Detail

      • NamedValueType

        public NamedValueType()
        Creates a new NamedValueType instance.
      • NamedValueType

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

      • getName

        public QName getName()
        Gets the value of the name property.
        possible object is QName
      • setName

        public void setName​(QName value)
        Sets the value of the name property.
        value - allowed object is QName
      • 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 AnyValueType
      • 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 in class AnyValueType
      • 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
        equals in class AnyValueType
      • clone

        public NamedValueType clone()
        Creates and returns a deep copy of this object.
        clone in class AnyValueType
        A deep copy of this object.