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">
       <complexContent>
         <extension base="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}AnyValueType">
           <sequence>
             <element name="name" type="{http://www.w3.org/2001/XMLSchema}QName" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    See Also:
    Serialized Form
    • Field Detail

      • name

        protected QName name
      • COMPLEX_TYPE

        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.
        Parameters:
        o - The instance to copy.
        Throws:
        NullPointerException - if o is null.
    • Method Detail

      • getName

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

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

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