|
||||||||||
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_1.ValueConstructionType
public class ValueConstructionType
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}extension" minOccurs="0"/> <choice> <element name="value"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <any/> </sequence> </restriction> </complexContent> </complexType> </element> <sequence> <element name="variable" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd}VariableDefinitionType" maxOccurs="unbounded" minOccurs="0"/> <element name="valueExpression" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd}ExpressionType"/> <element name="dependency" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd}XPathType" maxOccurs="unbounded" minOccurs="0"/> </sequence> </choice> <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd}condition" minOccurs="0"/> <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd}valueFilter" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="exclusive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> <attribute name="default" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> <attribute name="authoritative" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> <attribute name="clear" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> </restriction> </complexContent> </complexType>
Nested Class Summary | |
---|---|
static class |
ValueConstructionType.Value
Java class for anonymous complex type. |
Field Summary | |
---|---|
protected java.lang.Boolean |
_default
|
protected java.lang.Boolean |
authoritative
|
protected java.lang.Boolean |
clear
|
protected org.w3c.dom.Element |
condition
|
protected java.util.List<org.w3c.dom.Element> |
dependency
|
protected java.lang.Boolean |
exclusive
|
protected Extension |
extension
|
protected javax.xml.bind.JAXBElement<ValueConstructionType.Value> |
value
|
protected org.w3c.dom.Element |
valueExpression
|
protected java.util.List<ValueFilterType> |
valueFilter
|
protected java.util.List<VariableDefinitionType> |
variable
|
Constructor Summary | |
---|---|
ValueConstructionType()
|
Method Summary | |
---|---|
org.w3c.dom.Element |
getCondition()
The value will only be valid if the condition is evaluated to true. |
java.util.List<org.w3c.dom.Element> |
getDependency()
Gets the value of the dependency property. |
Extension |
getExtension()
Gets the value of the extension property. |
javax.xml.bind.JAXBElement<ValueConstructionType.Value> |
getValue()
Gets the value of the value property. |
org.w3c.dom.Element |
getValueExpression()
Gets the value of the valueExpression property. |
java.util.List<ValueFilterType> |
getValueFilter()
List of filters that will be applied to the value after it was constructed. |
java.util.List<VariableDefinitionType> |
getVariable()
Gets the value of the variable property. |
boolean |
isAuthoritative()
Gets the value of the authoritative property. |
boolean |
isClear()
Gets the value of the clear property. |
boolean |
isDefault()
Gets the value of the default property. |
boolean |
isExclusive()
Gets the value of the exclusive property. |
void |
setAuthoritative(java.lang.Boolean value)
Sets the value of the authoritative property. |
void |
setClear(java.lang.Boolean value)
Sets the value of the clear property. |
void |
setCondition(org.w3c.dom.Element value)
Sets the value of the condition property. |
void |
setDefault(java.lang.Boolean value)
Sets the value of the default 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 |
setValue(javax.xml.bind.JAXBElement<ValueConstructionType.Value> value)
Sets the value of the value property. |
void |
setValueExpression(org.w3c.dom.Element value)
Sets the value of the valueExpression property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Extension extension
protected javax.xml.bind.JAXBElement<ValueConstructionType.Value> value
protected java.util.List<VariableDefinitionType> variable
protected org.w3c.dom.Element valueExpression
protected java.util.List<org.w3c.dom.Element> dependency
protected org.w3c.dom.Element condition
protected java.util.List<ValueFilterType> valueFilter
protected java.lang.Boolean exclusive
protected java.lang.Boolean _default
protected java.lang.Boolean authoritative
protected java.lang.Boolean clear
Constructor Detail |
---|
public ValueConstructionType()
Method Detail |
---|
public Extension getExtension()
Extension
public void setExtension(Extension value)
value
- allowed object is
Extension
public javax.xml.bind.JAXBElement<ValueConstructionType.Value> getValue()
JAXBElement
<
ValueConstructionType.Value
>
public void setValue(javax.xml.bind.JAXBElement<ValueConstructionType.Value> value)
value
- allowed object is
JAXBElement
<
ValueConstructionType.Value
>
public java.util.List<VariableDefinitionType> getVariable()
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 variable property.
For example, to add a new item, do as follows:
getVariable().add(newItem);
Objects of the following type(s) are allowed in the list
VariableDefinitionType
public org.w3c.dom.Element getValueExpression()
Element
public void setValueExpression(org.w3c.dom.Element value)
value
- allowed object is
Element
public java.util.List<org.w3c.dom.Element> getDependency()
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 dependency property.
For example, to add a new item, do as follows:
getDependency().add(newItem);
Objects of the following type(s) are allowed in the list
Element
public org.w3c.dom.Element getCondition()
Element
public void setCondition(org.w3c.dom.Element value)
value
- allowed object is
Element
public java.util.List<ValueFilterType> getValueFilter()
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 valueFilter property.
For example, to add a new item, do as follows:
getValueFilter().add(newItem);
Objects of the following type(s) are allowed in the list
ValueFilterType
public boolean isExclusive()
Boolean
public void setExclusive(java.lang.Boolean value)
value
- allowed object is
Boolean
public boolean isDefault()
Boolean
public void setDefault(java.lang.Boolean value)
value
- allowed object is
Boolean
public boolean isAuthoritative()
Boolean
public void setAuthoritative(java.lang.Boolean value)
value
- allowed object is
Boolean
public boolean isClear()
Boolean
public void setClear(java.lang.Boolean value)
value
- allowed object is
Boolean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |