com.evolveum.midpoint.xml.ns._public.common.common_1
Class ValueConstructionType

java.lang.Object
  extended by com.evolveum.midpoint.xml.ns._public.common.common_1.ValueConstructionType
All Implemented Interfaces:
java.io.Serializable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode
Direct Known Subclasses:
EntitlementConstructionType, ScriptArgumentType

public class ValueConstructionType
extends java.lang.Object
implements java.io.Serializable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode

Defines how a value of a property (or attribute) should be constructed. The value may be static or constructed as an result of evaluating an expression. This strucuture also defines a method how to merge several value construction definitions, how to behave if a property already has a value, etc. This is reusable data structure, used in schemaHandling, roles and it may also be used in may other places. Motivation: We need to construct attribute or property values on many places in midPoint. E.g. we need that in roles to generate dynamic account attribute values, we need that to define "templates" for identifiers and default values for attributes when creating a new account. We also need that to specify values when creating a new user (user templates). Having the same data structure for all of these cases may simplify the code, as it all can be handled by a generic library reused in many places throught the system.

Java class for ValueConstructionType complex type.

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

 <complexType name="ValueConstructionType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd}description" minOccurs="0"/>
         <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd}extension" minOccurs="0"/>
         <element name="ref" type="{http://www.w3.org/2001/XMLSchema}QName" minOccurs="0"/>
         <element name="authoritative" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="exclusive" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="initial" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd}stringFilter" maxOccurs="unbounded" minOccurs="0"/>
         <choice>
           <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd}valueConstructor"/>
           <element name="sequence">
             <complexType>
               <complexContent>
                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                   <sequence>
                     <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd}valueConstructor" maxOccurs="unbounded"/>
                   </sequence>
                 </restriction>
               </complexContent>
             </complexType>
           </element>
         </choice>
         <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd}condition" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Nested Class Summary
static class ValueConstructionType.Sequence
          Java class for anonymous complex type.
 
Field Summary
protected  java.lang.Boolean authoritative
           
static javax.xml.namespace.QName COMPLEX_TYPE
           
protected  ExpressionType condition
           
protected  java.lang.String description
           
protected  java.lang.Boolean exclusive
           
protected  Extension extension
           
static javax.xml.namespace.QName F_AUTHORITATIVE
           
static javax.xml.namespace.QName F_CONDITION
           
static javax.xml.namespace.QName F_DESCRIPTION
           
static javax.xml.namespace.QName F_EXCLUSIVE
           
static javax.xml.namespace.QName F_EXTENSION
           
static javax.xml.namespace.QName F_INITIAL
           
static javax.xml.namespace.QName F_REF
           
static javax.xml.namespace.QName F_SEQUENCE
           
static javax.xml.namespace.QName F_STRING_FILTER
           
static javax.xml.namespace.QName F_VALUE_CONSTRUCTOR
           
protected  java.lang.Boolean initial
           
protected  javax.xml.namespace.QName ref
           
protected  ValueConstructionType.Sequence sequence
           
protected  java.util.List<StringFilterType> stringFilter
           
protected  javax.xml.bind.JAXBElement<?> valueConstructor
           
 
Constructor Summary
ValueConstructionType()
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
           
 ExpressionType getCondition()
          Gets the value of the condition property.
 java.lang.String getDescription()
          Gets the value of the description property.
 Extension getExtension()
          Gets the value of the extension property.
 javax.xml.namespace.QName getRef()
          Gets the value of the ref property.
 ValueConstructionType.Sequence getSequence()
          Gets the value of the sequence property.
 java.util.List<StringFilterType> getStringFilter()
          Gets the value of the stringFilter property.
 javax.xml.bind.JAXBElement<?> getValueConstructor()
          Gets the value of the valueConstructor property.
 int hashCode()
           
 int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
           
 java.lang.Boolean isAuthoritative()
          Gets the value of the authoritative property.
 java.lang.Boolean isExclusive()
          Gets the value of the exclusive property.
 java.lang.Boolean isInitial()
          Gets the value of the initial property.
 void setAuthoritative(java.lang.Boolean value)
          Sets the value of the authoritative property.
 void setCondition(ExpressionType value)
          Sets the value of the condition property.
 void setDescription(java.lang.String value)
          Sets the value of the description property.
 void setExclusive(java.lang.Boolean value)
          Sets the value of the exclusive property.
 void setExtension(Extension value)
          Sets the value of the extension property.
 void setInitial(java.lang.Boolean value)
          Sets the value of the initial property.
 void setRef(javax.xml.namespace.QName value)
          Sets the value of the ref property.
 void setSequence(ValueConstructionType.Sequence value)
          Sets the value of the sequence property.
 void setValueConstructor(javax.xml.bind.JAXBElement<?> value)
          Sets the value of the valueConstructor property.
 java.lang.String toString()
          Generates a String representation of the contents of this type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

description

protected java.lang.String description

extension

protected Extension extension

ref

protected javax.xml.namespace.QName ref

authoritative

protected java.lang.Boolean authoritative

exclusive

protected java.lang.Boolean exclusive

initial

protected java.lang.Boolean initial

stringFilter

protected java.util.List<StringFilterType> stringFilter

valueConstructor

protected javax.xml.bind.JAXBElement<?> valueConstructor

sequence

protected ValueConstructionType.Sequence sequence

condition

protected ExpressionType condition

COMPLEX_TYPE

public static final javax.xml.namespace.QName COMPLEX_TYPE

F_DESCRIPTION

public static final javax.xml.namespace.QName F_DESCRIPTION

F_EXTENSION

public static final javax.xml.namespace.QName F_EXTENSION

F_REF

public static final javax.xml.namespace.QName F_REF

F_AUTHORITATIVE

public static final javax.xml.namespace.QName F_AUTHORITATIVE

F_EXCLUSIVE

public static final javax.xml.namespace.QName F_EXCLUSIVE

F_INITIAL

public static final javax.xml.namespace.QName F_INITIAL

F_STRING_FILTER

public static final javax.xml.namespace.QName F_STRING_FILTER

F_VALUE_CONSTRUCTOR

public static final javax.xml.namespace.QName F_VALUE_CONSTRUCTOR

F_SEQUENCE

public static final javax.xml.namespace.QName F_SEQUENCE

F_CONDITION

public static final javax.xml.namespace.QName F_CONDITION
Constructor Detail

ValueConstructionType

public ValueConstructionType()
Method Detail

getDescription

public java.lang.String getDescription()
Gets the value of the description property.

Returns:
possible object is String

setDescription

public void setDescription(java.lang.String value)
Sets the value of the description property.

Parameters:
value - allowed object is String

getExtension

public Extension getExtension()
Gets the value of the extension property.

Returns:
possible object is Extension

setExtension

public void setExtension(Extension value)
Sets the value of the extension property.

Parameters:
value - allowed object is Extension

getRef

public javax.xml.namespace.QName getRef()
Gets the value of the ref property.

Returns:
possible object is QName

setRef

public void setRef(javax.xml.namespace.QName value)
Sets the value of the ref property.

Parameters:
value - allowed object is QName

isAuthoritative

public java.lang.Boolean isAuthoritative()
Gets the value of the authoritative property.

Returns:
possible object is Boolean

setAuthoritative

public void setAuthoritative(java.lang.Boolean value)
Sets the value of the authoritative property.

Parameters:
value - allowed object is Boolean

isExclusive

public java.lang.Boolean isExclusive()
Gets the value of the exclusive property.

Returns:
possible object is Boolean

setExclusive

public void setExclusive(java.lang.Boolean value)
Sets the value of the exclusive property.

Parameters:
value - allowed object is Boolean

isInitial

public java.lang.Boolean isInitial()
Gets the value of the initial property.

Returns:
possible object is Boolean

setInitial

public void setInitial(java.lang.Boolean value)
Sets the value of the initial property.

Parameters:
value - allowed object is Boolean

getStringFilter

public java.util.List<StringFilterType> getStringFilter()
Gets the value of the stringFilter property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the stringFilter property.

For example, to add a new item, do as follows:

    getStringFilter().add(newItem);
 

Objects of the following type(s) are allowed in the list StringFilterType


getValueConstructor

public javax.xml.bind.JAXBElement<?> getValueConstructor()
Gets the value of the valueConstructor property.

Returns:
possible object is JAXBElement<ExpressionType> JAXBElement<Object> JAXBElement<Object> JAXBElement<GenerateValueConstructorType> JAXBElement<AsIsValueConstructorType>

setValueConstructor

public void setValueConstructor(javax.xml.bind.JAXBElement<?> value)
Sets the value of the valueConstructor property.

Parameters:
value - allowed object is JAXBElement<ExpressionType> JAXBElement<Object> JAXBElement<Object> JAXBElement<GenerateValueConstructorType> JAXBElement<AsIsValueConstructorType>

getSequence

public ValueConstructionType.Sequence getSequence()
Gets the value of the sequence property.

Returns:
possible object is ValueConstructionType.Sequence

setSequence

public void setSequence(ValueConstructionType.Sequence value)
Sets the value of the sequence property.

Parameters:
value - allowed object is ValueConstructionType.Sequence

getCondition

public ExpressionType getCondition()
Gets the value of the condition property.

Returns:
possible object is ExpressionType

setCondition

public void setCondition(ExpressionType value)
Sets the value of the condition property.

Parameters:
value - allowed object is ExpressionType

toString

public java.lang.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 java.lang.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 java.lang.Object

equals

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

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object


Copyright © 2012 evolveum. All Rights Reserved.