|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.schema.processor.Definition
com.evolveum.midpoint.schema.processor.PropertyContainerDefinition
public class PropertyContainerDefinition
Definition of a property container.
Property container groups properties into logical blocks. The reason for
grouping may be as simple as better understandability of data structure. But
the group usually means different meaning, source or structure of the data.
For example, the property container is frequently used to hold properties
that are dynamic, not fixed by a static schema. Such grouping also naturally
translates to XML and helps to "quarantine" such properties to avoid Unique
Particle Attribute problems.
Property Container contains a set of (potentially multi-valued) properties.
The order of properties is not significant, regardless of the fact that it
may be fixed in the XML representation. In the XML representation, each
element inside Property Container must be either Property or a Property
Container.
This class represents schema definition for property container. See
Definition
for more details.
Method Summary | ||
---|---|---|
java.lang.String |
debugDump(int indent)
|
|
PropertyDefinition |
findPropertyDefinition(javax.xml.namespace.QName name)
Finds a PropertyDefinition by looking at the property name. |
|
protected
|
findPropertyDefinition(javax.xml.namespace.QName name,
java.lang.Class<T> clazz)
|
|
java.util.Set<PropertyDefinition> |
getDefinitions()
Returns set of property definitions. |
|
PropertyContainer |
instantiate()
|
|
PropertyContainer |
instantiate(javax.xml.namespace.QName name)
|
|
java.util.Set<Property> |
parseProperties(java.util.List<org.w3c.dom.Element> elements)
Parses properties from a list of elements. |
|
protected
|
parseProperties(java.util.List<org.w3c.dom.Element> elements,
java.lang.Class<T> clazz)
Same as parseProperties(List |
|
protected
|
parseProperties(java.util.List<org.w3c.dom.Element> elements,
java.lang.Class<T> clazz,
java.util.Set<? extends PropertyDefinition> selection)
Same as parseProperties(List |
|
java.util.List<org.w3c.dom.Element> |
serializePropertiesToDom(java.util.Set<Property> properties,
org.w3c.dom.Document doc)
Serializes provided properties to DOM. |
Methods inherited from class com.evolveum.midpoint.schema.processor.Definition |
---|
getDefaultName, getDisplayName, getHelp, getName, getNameOrDefaultName, getTypeName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public PropertyDefinition findPropertyDefinition(javax.xml.namespace.QName name)
name
- property definition name
protected <T extends PropertyDefinition> T findPropertyDefinition(javax.xml.namespace.QName name, java.lang.Class<T> clazz)
public java.util.Set<PropertyDefinition> getDefinitions()
public PropertyContainer instantiate()
public PropertyContainer instantiate(javax.xml.namespace.QName name)
public java.util.Set<Property> parseProperties(java.util.List<org.w3c.dom.Element> elements)
elements
- list of elements with serialized properties
protected <T extends Property> java.util.Set<T> parseProperties(java.util.List<org.w3c.dom.Element> elements, java.lang.Class<T> clazz)
T
- class to returnelements
- elements list of elements with serialized propertiesclazz
- class to return
protected <T extends Property> java.util.Set<T> parseProperties(java.util.List<org.w3c.dom.Element> elements, java.lang.Class<T> clazz, java.util.Set<? extends PropertyDefinition> selection)
public java.util.List<org.w3c.dom.Element> serializePropertiesToDom(java.util.Set<Property> properties, org.w3c.dom.Document doc) throws SchemaProcessorException
properties
- set of properties to serializedoc
- DOM document
SchemaProcessorException
- in case property definition is not found or is inconsistentProperty
public java.lang.String debugDump(int indent)
debugDump
in class Definition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |