Class NamedValueType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.AnyValueType
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.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 Summary
Fields Modifier and Type Field Description static QName
COMPLEX_TYPE
static ItemName
F_NAME
protected QName
name
-
Fields inherited from class com.evolveum.midpoint.xml.ns._public.common.common_3.AnyValueType
F_TEXT_VALUE, F_VALUE, textValue, value
-
-
Constructor Summary
Constructors Constructor Description NamedValueType()
Creates a newNamedValueType
instance.NamedValueType(NamedValueType o)
Creates a newNamedValueType
instance by deeply copying a givenNamedValueType
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(JaxbVisitor visitor)
NamedValueType
clone()
Creates and returns a deep copy of this object.boolean
equals(Object object)
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)
QName
getName()
Gets the value of the name property.int
hashCode()
int
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
NamedValueType
name(QName value)
void
setName(QName value)
Sets the value of the name property.NamedValueType
textValue(String value)
String
toString()
Generates a String representation of the contents of this type.NamedValueType
value(Object value)
-
Methods inherited from class com.evolveum.midpoint.xml.ns._public.common.common_3.AnyValueType
getTextValue, getValue, setTextValue, setValue
-
-
-
-
Constructor Detail
-
NamedValueType
public NamedValueType()
Creates a newNamedValueType
instance.
-
NamedValueType
public NamedValueType(NamedValueType o)
Creates a newNamedValueType
instance by deeply copying a givenNamedValueType
instance.- Parameters:
o
- The instance to copy.- Throws:
NullPointerException
- ifo
isnull
.
-
-
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 isQName
-
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 classAnyValueType
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
- Specified by:
hashCode
in interfaceorg.jvnet.jaxb2_commons.lang.HashCode
- Overrides:
hashCode
in classAnyValueType
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAnyValueType
-
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 interfaceorg.jvnet.jaxb2_commons.lang.Equals
- Overrides:
equals
in classAnyValueType
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classAnyValueType
-
name
public NamedValueType name(QName value)
-
value
public NamedValueType value(Object value)
- Overrides:
value
in classAnyValueType
-
textValue
public NamedValueType textValue(String value)
- Overrides:
textValue
in classAnyValueType
-
accept
public void accept(JaxbVisitor visitor)
- Specified by:
accept
in interfaceJaxbVisitable
- Overrides:
accept
in classAnyValueType
-
clone
public NamedValueType clone()
Creates and returns a deep copy of this object.- Overrides:
clone
in classAnyValueType
- Returns:
- A deep copy of this object.
-
-