com.evolveum.midpoint.xml.ns._public.common.common_2a
Class MappingType

java.lang.Object
  extended by com.evolveum.midpoint.xml.ns._public.common.common_2a.MappingType
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode

public class MappingType
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, 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 MappingType complex type.

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

 <complexType name="MappingType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-2a}description" minOccurs="0"/>
         <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-2a}extension" 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="strength" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-2a}MappingStrengthType" minOccurs="0"/>
         <element name="channel" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/>
         <element name="source" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-2a}MappingSourceDeclarationType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="expression" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-2a}ExpressionType" minOccurs="0"/>
         <element name="target" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-2a}MappingTargetDeclarationType" minOccurs="0"/>
         <element name="condition" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-2a}ExpressionType" minOccurs="0"/>
         <element name="inputFilter" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-2a}ValueFilterType" minOccurs="0"/>
         <element name="outputFilter" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-2a}ValueFilterType" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  java.lang.Boolean authoritative
           
protected  java.util.List<java.lang.String> channel
           
static javax.xml.namespace.QName COMPLEX_TYPE
           
protected  ExpressionType condition
           
protected  java.lang.String description
           
protected  java.lang.Boolean exclusive
           
protected  ExpressionType expression
           
protected  ExtensionType extension
           
static javax.xml.namespace.QName F_AUTHORITATIVE
           
static javax.xml.namespace.QName F_CHANNEL
           
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_EXPRESSION
           
static javax.xml.namespace.QName F_EXTENSION
           
static javax.xml.namespace.QName F_INPUT_FILTER
           
static javax.xml.namespace.QName F_OUTPUT_FILTER
           
static javax.xml.namespace.QName F_SOURCE
           
static javax.xml.namespace.QName F_STRENGTH
           
static javax.xml.namespace.QName F_TARGET
           
protected  ValueFilterType inputFilter
           
protected  ValueFilterType outputFilter
           
protected  java.util.List<MappingSourceDeclarationType> source
           
protected  MappingStrengthType strength
           
protected  MappingTargetDeclarationType target
           
 
Constructor Summary
MappingType()
          Creates a new MappingType instance.
MappingType(MappingType o)
          Creates a new MappingType instance by deeply copying a given MappingType instance.
 
Method Summary
 MappingType clone()
          Creates and returns a deep copy of this object.
 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)
           
 java.util.List<java.lang.String> getChannel()
          Gets the value of the channel property.
 ExpressionType getCondition()
          Gets the value of the condition property.
 java.lang.String getDescription()
          Gets the value of the description property.
 ExpressionType getExpression()
          Gets the value of the expression property.
 ExtensionType getExtension()
          Gets the value of the extension property.
 ValueFilterType getInputFilter()
          Gets the value of the inputFilter property.
 ValueFilterType getOutputFilter()
          Gets the value of the outputFilter property.
 java.util.List<MappingSourceDeclarationType> getSource()
          Gets the value of the source property.
 MappingStrengthType getStrength()
          Gets the value of the strength property.
 MappingTargetDeclarationType getTarget()
          Gets the value of the target 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.
 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 setExpression(ExpressionType value)
          Sets the value of the expression property.
 void setExtension(ExtensionType value)
          Sets the value of the extension property.
 void setInputFilter(ValueFilterType value)
          Sets the value of the inputFilter property.
 void setOutputFilter(ValueFilterType value)
          Sets the value of the outputFilter property.
 void setStrength(MappingStrengthType value)
          Sets the value of the strength property.
 void setTarget(MappingTargetDeclarationType value)
          Sets the value of the target property.
 java.lang.String toString()
          Generates a String representation of the contents of this type.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

description

protected java.lang.String description

extension

protected ExtensionType extension

authoritative

protected java.lang.Boolean authoritative

exclusive

protected java.lang.Boolean exclusive

strength

protected MappingStrengthType strength

channel

protected java.util.List<java.lang.String> channel

source

protected java.util.List<MappingSourceDeclarationType> source

expression

protected ExpressionType expression

target

protected MappingTargetDeclarationType target

condition

protected ExpressionType condition

inputFilter

protected ValueFilterType inputFilter

outputFilter

protected ValueFilterType outputFilter

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_AUTHORITATIVE

public static final javax.xml.namespace.QName F_AUTHORITATIVE

F_EXCLUSIVE

public static final javax.xml.namespace.QName F_EXCLUSIVE

F_STRENGTH

public static final javax.xml.namespace.QName F_STRENGTH

F_CHANNEL

public static final javax.xml.namespace.QName F_CHANNEL

F_SOURCE

public static final javax.xml.namespace.QName F_SOURCE

F_EXPRESSION

public static final javax.xml.namespace.QName F_EXPRESSION

F_TARGET

public static final javax.xml.namespace.QName F_TARGET

F_CONDITION

public static final javax.xml.namespace.QName F_CONDITION

F_INPUT_FILTER

public static final javax.xml.namespace.QName F_INPUT_FILTER

F_OUTPUT_FILTER

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

MappingType

public MappingType()
Creates a new MappingType instance.


MappingType

public MappingType(MappingType o)
Creates a new MappingType instance by deeply copying a given MappingType instance.

Parameters:
o - The instance to copy.
Throws:
java.lang.NullPointerException - if o is null.
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 ExtensionType getExtension()
Gets the value of the extension property.

Returns:
possible object is ExtensionType

setExtension

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

Parameters:
value - allowed object is ExtensionType

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

getStrength

public MappingStrengthType getStrength()
Gets the value of the strength property.

Returns:
possible object is MappingStrengthType

setStrength

public void setStrength(MappingStrengthType value)
Sets the value of the strength property.

Parameters:
value - allowed object is MappingStrengthType

getChannel

public java.util.List<java.lang.String> getChannel()
Gets the value of the channel 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 channel property.

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

    getChannel().add(newItem);
 

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


getSource

public java.util.List<MappingSourceDeclarationType> getSource()
Gets the value of the source 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 source property.

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

    getSource().add(newItem);
 

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


getExpression

public ExpressionType getExpression()
Gets the value of the expression property.

Returns:
possible object is ExpressionType

setExpression

public void setExpression(ExpressionType value)
Sets the value of the expression property.

Parameters:
value - allowed object is ExpressionType

getTarget

public MappingTargetDeclarationType getTarget()
Gets the value of the target property.

Returns:
possible object is MappingTargetDeclarationType

setTarget

public void setTarget(MappingTargetDeclarationType value)
Sets the value of the target property.

Parameters:
value - allowed object is MappingTargetDeclarationType

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

getInputFilter

public ValueFilterType getInputFilter()
Gets the value of the inputFilter property.

Returns:
possible object is ValueFilterType

setInputFilter

public void setInputFilter(ValueFilterType value)
Sets the value of the inputFilter property.

Parameters:
value - allowed object is ValueFilterType

getOutputFilter

public ValueFilterType getOutputFilter()
Gets the value of the outputFilter property.

Returns:
possible object is ValueFilterType

setOutputFilter

public void setOutputFilter(ValueFilterType value)
Sets the value of the outputFilter property.

Parameters:
value - allowed object is ValueFilterType

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

clone

public MappingType clone()
Creates and returns a deep copy of this object.

Overrides:
clone in class java.lang.Object
Returns:
A deep copy of this object.


Copyright © 2012 evolveum. All Rights Reserved.