|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.schema.processor.PropertyContainer
public class PropertyContainer
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. Property Container is mutable.
Constructor Summary | |
---|---|
PropertyContainer()
|
|
PropertyContainer(javax.xml.namespace.QName name)
|
|
PropertyContainer(javax.xml.namespace.QName name,
PropertyContainerDefinition definition)
|
Method Summary | |
---|---|
void |
applyModification(PropertyModification modification)
|
void |
applyModifications(java.util.List<PropertyModification> modifications)
|
java.lang.String |
dump()
|
Property |
findProperty(PropertyDefinition propertyDefinition)
Finds a specific property in the container by definition. |
Property |
findProperty(javax.xml.namespace.QName propertyQName)
Finds a specific property in the container by name. |
PropertyContainerDefinition |
getDefinition()
Returns applicable property container definition. |
java.lang.String |
getDisplayName()
Returns a display name for the property container type. |
java.lang.String |
getHelp()
Returns help message defined for the property container type. |
javax.xml.namespace.QName |
getName()
Returns the name of the property container. |
java.util.Set<Property> |
getProperties()
Returns a set of properties that the property container contains. |
boolean |
isEmpty()
|
java.util.List<org.w3c.dom.Element> |
serializePropertiesToDom(org.w3c.dom.Document doc)
Serialize properties to DOM. |
org.w3c.dom.Element |
serializeToDom(org.w3c.dom.Document doc)
Serialize entire property container to DOM. |
void |
setDefinition(PropertyContainerDefinition definition)
Sets applicable property container definition. |
void |
setName(javax.xml.namespace.QName name)
Sets the name of the property container. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyContainer()
public PropertyContainer(javax.xml.namespace.QName name, PropertyContainerDefinition definition)
public PropertyContainer(javax.xml.namespace.QName name)
Method Detail |
---|
public javax.xml.namespace.QName getName()
public void setName(javax.xml.namespace.QName name)
name
- the name to setpublic java.util.Set<Property> getProperties()
public PropertyContainerDefinition getDefinition()
public void setDefinition(PropertyContainerDefinition definition)
definition
- the definition to setpublic java.lang.String getDisplayName()
public java.lang.String getHelp()
public Property findProperty(javax.xml.namespace.QName propertyQName)
propertyQName
- property name to find.
public Property findProperty(PropertyDefinition propertyDefinition)
propertyDefinition
- property definition to find.
public java.util.List<org.w3c.dom.Element> serializePropertiesToDom(org.w3c.dom.Document doc) throws SchemaProcessorException
doc
- DOM Document
SchemaProcessorException
- the schema definition is missing or is inconsistentpublic org.w3c.dom.Element serializeToDom(org.w3c.dom.Document doc) throws SchemaProcessorException
doc
- DOM Document
SchemaProcessorException
- the schema definition is missing or is inconsistentpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String dump()
public boolean isEmpty()
public void applyModifications(java.util.List<PropertyModification> modifications)
public void applyModification(PropertyModification modification)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |