|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.xml.ns._public.common.common_2a.MappingType
public class MappingType
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>
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 |
---|
protected java.lang.String description
protected ExtensionType extension
protected java.lang.Boolean authoritative
protected java.lang.Boolean exclusive
protected MappingStrengthType strength
protected java.util.List<java.lang.String> channel
protected java.util.List<MappingSourceDeclarationType> source
protected ExpressionType expression
protected MappingTargetDeclarationType target
protected ExpressionType condition
protected ValueFilterType inputFilter
protected ValueFilterType outputFilter
public static final javax.xml.namespace.QName COMPLEX_TYPE
public static final javax.xml.namespace.QName F_DESCRIPTION
public static final javax.xml.namespace.QName F_EXTENSION
public static final javax.xml.namespace.QName F_AUTHORITATIVE
public static final javax.xml.namespace.QName F_EXCLUSIVE
public static final javax.xml.namespace.QName F_STRENGTH
public static final javax.xml.namespace.QName F_CHANNEL
public static final javax.xml.namespace.QName F_SOURCE
public static final javax.xml.namespace.QName F_EXPRESSION
public static final javax.xml.namespace.QName F_TARGET
public static final javax.xml.namespace.QName F_CONDITION
public static final javax.xml.namespace.QName F_INPUT_FILTER
public static final javax.xml.namespace.QName F_OUTPUT_FILTER
Constructor Detail |
---|
public MappingType()
MappingType
instance.
public MappingType(MappingType o)
MappingType
instance by deeply copying a given MappingType
instance.
o
- The instance to copy.
java.lang.NullPointerException
- if o
is null
.Method Detail |
---|
public java.lang.String getDescription()
String
public void setDescription(java.lang.String value)
value
- allowed object is
String
public ExtensionType getExtension()
ExtensionType
public void setExtension(ExtensionType value)
value
- allowed object is
ExtensionType
public java.lang.Boolean isAuthoritative()
Boolean
public void setAuthoritative(java.lang.Boolean value)
value
- allowed object is
Boolean
public java.lang.Boolean isExclusive()
Boolean
public void setExclusive(java.lang.Boolean value)
value
- allowed object is
Boolean
public MappingStrengthType getStrength()
MappingStrengthType
public void setStrength(MappingStrengthType value)
value
- allowed object is
MappingStrengthType
public java.util.List<java.lang.String> getChannel()
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
public java.util.List<MappingSourceDeclarationType> getSource()
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
public ExpressionType getExpression()
ExpressionType
public void setExpression(ExpressionType value)
value
- allowed object is
ExpressionType
public MappingTargetDeclarationType getTarget()
MappingTargetDeclarationType
public void setTarget(MappingTargetDeclarationType value)
value
- allowed object is
MappingTargetDeclarationType
public ExpressionType getCondition()
ExpressionType
public void setCondition(ExpressionType value)
value
- allowed object is
ExpressionType
public ValueFilterType getInputFilter()
ValueFilterType
public void setInputFilter(ValueFilterType value)
value
- allowed object is
ValueFilterType
public ValueFilterType getOutputFilter()
ValueFilterType
public void setOutputFilter(ValueFilterType value)
value
- allowed object is
ValueFilterType
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
hashCode
in interface org.jvnet.jaxb2_commons.lang.HashCode
public int hashCode()
hashCode
in class java.lang.Object
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)
equals
in interface org.jvnet.jaxb2_commons.lang.Equals
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public MappingType clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |