|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.evolveum.midpoint.prism.PrismValue
com.evolveum.midpoint.prism.PrismContainerValue<T>
public class PrismContainerValue<T extends Containerable>
| Field Summary |
|---|
| Fields inherited from class com.evolveum.midpoint.prism.PrismValue |
|---|
domElement |
| Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable |
|---|
INDENT_STRING |
| Constructor Summary | |
|---|---|
PrismContainerValue()
|
|
PrismContainerValue(OriginType type,
Objectable source,
PrismContainerable container,
java.lang.String id)
|
|
| Method Summary | ||
|---|---|---|
void |
accept(Visitor visitor)
|
|
void |
add(Item<?> item)
Adds an item to a property container. |
|
void |
addAll(java.util.Collection<? extends Item<?>> itemsToAdd)
Adds a collection of items to a property container. |
|
void |
addAllReplaceExisting(java.util.Collection<? extends Item<?>> itemsToAdd)
Adds a collection of items to a property container. |
|
void |
addReplaceExisting(Item<?> item)
Adds an item to a property container. |
|
void |
applyDefinition(ItemDefinition definition,
boolean force)
|
|
void |
applyDefinition(PrismContainerDefinition definition,
boolean force)
|
|
T |
asContainerable()
|
|
T |
asContainerable(java.lang.Class<T> clazz)
|
|
void |
assertDefinitions(boolean tolerateRaw,
java.lang.String sourceDescription)
|
|
void |
assertDefinitions(java.lang.String sourceDescription)
|
|
void |
checkConsistenceInternal(Itemable rootItem,
ItemPath parentPath,
boolean requireDefinitions,
boolean prohibitRaw)
|
|
void |
clear()
|
|
PrismContainerValue<T> |
clone()
|
|
protected void |
copyValues(PrismContainerValue<T> clone)
|
|
|
createContainer(javax.xml.namespace.QName containerName)
|
|
protected org.w3c.dom.Element |
createDomElement()
|
|
|
createProperty(PrismPropertyDefinition propertyDefinition)
|
|
|
createProperty(javax.xml.namespace.QName propertyName)
|
|
java.lang.String |
debugDump()
Show the content of the object intended for diagnostics by system administrator. |
|
java.lang.String |
debugDump(int indent)
|
|
java.lang.String |
dump()
Show the content of the object intended for diagnostics by developer. |
|
boolean |
equals(java.lang.Object obj)
|
|
boolean |
equalsComplex(PrismContainerValue<?> other,
boolean ignoreMetadata,
boolean isLiteral)
|
|
boolean |
equalsComplex(PrismValue other,
boolean ignoreMetadata,
boolean isLiteral)
|
|
boolean |
equivalent(PrismContainerValue<?> other)
|
|
|
findContainer(javax.xml.namespace.QName containerName)
|
|
|
findItem(ItemDefinition itemDefinition,
java.lang.Class<I> type)
|
|
Item<?> |
findItem(ItemPath itemPath)
|
|
Item<?> |
findItem(javax.xml.namespace.QName itemName)
|
|
|
findItem(javax.xml.namespace.QName itemName,
java.lang.Class<I> type)
|
|
|
findOrCreateContainer(javax.xml.namespace.QName containerName)
|
|
Item<?> |
findOrCreateItem(javax.xml.namespace.QName containerName)
|
|
|
findOrCreateItem(javax.xml.namespace.QName containerName,
java.lang.Class<X> type)
|
|
|
findOrCreateProperty(PrismPropertyDefinition propertyDef)
|
|
|
findOrCreateProperty(javax.xml.namespace.QName propertyQName)
|
|
PrismReference |
findOrCreateReference(javax.xml.namespace.QName referenceName)
|
|
|
findProperty(ItemPath propertyPath)
|
|
|
findProperty(PrismPropertyDefinition propertyDefinition)
Finds a specific property in the container by definition. |
|
|
findProperty(javax.xml.namespace.QName propertyQName)
|
|
PrismReference |
findReference(javax.xml.namespace.QName elementName)
|
|
PrismReference |
findReferenceByCompositeObjectElementName(javax.xml.namespace.QName elementName)
|
|
PrismContainer<T> |
getContainer()
|
|
java.lang.String |
getId()
|
|
java.util.List<Item<?>> |
getItems()
Returns a set of items that the property container contains. |
|
Item<?> |
getNextItem(Item<?> referenceItem)
|
|
PrismContainerable<T> |
getParent()
|
|
ItemPath |
getPath(ItemPath pathPrefix)
|
|
Item<?> |
getPreviousItem(Item<?> referenceItem)
|
|
java.util.Set<PrismProperty<?>> |
getProperties()
Returns a set of properties that the property container contains. |
|
java.util.Collection<javax.xml.namespace.QName> |
getPropertyNames()
|
|
|
getPropertyRealValue(javax.xml.namespace.QName propertyName,
java.lang.Class<T> type)
|
|
java.util.List<java.lang.Object> |
getRawElements()
|
|
T |
getValue()
|
|
boolean |
hasCompleteDefinition()
|
|
int |
hashCode()
|
|
boolean |
isEmpty()
|
|
boolean |
isRaw()
Returns true if the value is raw. |
|
void |
normalize()
|
|
void |
recompute(PrismContext prismContext)
|
|
void |
remove(Item<?> item)
|
|
void |
removeAll()
|
|
void |
removeContainer(ItemPath itemPath)
|
|
void |
removeContainer(javax.xml.namespace.QName containerName)
|
|
void |
removeProperty(ItemPath propertyPath)
|
|
void |
removeProperty(javax.xml.namespace.QName propertyName)
|
|
void |
replace(Item<?> oldItem,
Item<?> newItem)
|
|
boolean |
representsSameValue(PrismContainerValue<T> other)
|
|
boolean |
representsSameValue(PrismValue other)
Returns true if this and other value represent the same value. |
|
void |
revive(PrismContext prismContext)
|
|
void |
setId(java.lang.String id)
|
|
void |
setPropertyRealValue(javax.xml.namespace.QName propertyName,
java.lang.Object realValue)
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class com.evolveum.midpoint.prism.PrismValue |
|---|
applyDefinition, asDomElement, clearDomElement, cloneCollection, cloneValues, containsRealValue, copyValues, diff, diff, equals, equals, equalsRealValue, equalsRealValue, getOriginObject, getOriginType, getPrismContext, recompute, resetParentCollection, setOriginObject, setOriginType, setParent |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrismContainerValue()
public PrismContainerValue(OriginType type,
Objectable source,
PrismContainerable container,
java.lang.String id)
| Method Detail |
|---|
public java.util.List<Item<?>> getItems()
public Item<?> getNextItem(Item<?> referenceItem)
public Item<?> getPreviousItem(Item<?> referenceItem)
public java.util.Set<PrismProperty<?>> getProperties()
public java.lang.String getId()
public void setId(java.lang.String id)
public PrismContainerable<T> getParent()
getParent in class PrismValuepublic PrismContainer<T> getContainer()
public ItemPath getPath(ItemPath pathPrefix)
getPath in class PrismValuepublic T getValue()
public T asContainerable()
public T asContainerable(java.lang.Class<T> clazz)
public java.util.Collection<javax.xml.namespace.QName> getPropertyNames()
public void add(Item<?> item)
throws SchemaException
item - item to add.
SchemaException
java.lang.IllegalArgumentException - an attempt to add value that already exists
public void addReplaceExisting(Item<?> item)
throws SchemaException
item - item to add.
SchemaExceptionpublic void remove(Item<?> item)
public void removeAll()
public void addAll(java.util.Collection<? extends Item<?>> itemsToAdd)
throws SchemaException
itemsToAdd - items to add
java.lang.IllegalArgumentException - an attempt to add value that already exists
SchemaExceptionpublic void addAllReplaceExisting(java.util.Collection<? extends Item<?>> itemsToAdd)
itemsToAdd - items to add
public void replace(Item<?> oldItem,
Item<?> newItem)
throws SchemaException
SchemaExceptionpublic void clear()
public <X> PrismProperty<X> findProperty(javax.xml.namespace.QName propertyQName)
public <X> PrismProperty<X> findProperty(ItemPath propertyPath)
public <X> PrismProperty<X> findProperty(PrismPropertyDefinition propertyDefinition)
propertyDefinition - property definition to find.
public <X extends Containerable> PrismContainer<X> findContainer(javax.xml.namespace.QName containerName)
public PrismReference findReference(javax.xml.namespace.QName elementName)
public PrismReference findReferenceByCompositeObjectElementName(javax.xml.namespace.QName elementName)
public <I extends Item<?>> I findItem(javax.xml.namespace.QName itemName,
java.lang.Class<I> type)
public Item<?> findItem(javax.xml.namespace.QName itemName)
public Item<?> findItem(ItemPath itemPath)
public <I extends Item<?>> I findItem(ItemDefinition itemDefinition,
java.lang.Class<I> type)
public <T extends Containerable> PrismContainer<T> findOrCreateContainer(javax.xml.namespace.QName containerName)
throws SchemaException
SchemaException
public PrismReference findOrCreateReference(javax.xml.namespace.QName referenceName)
throws SchemaException
SchemaException
public Item<?> findOrCreateItem(javax.xml.namespace.QName containerName)
throws SchemaException
SchemaException
public <X extends Item> X findOrCreateItem(javax.xml.namespace.QName containerName,
java.lang.Class<X> type)
throws SchemaException
SchemaException
public <X> PrismProperty<X> findOrCreateProperty(javax.xml.namespace.QName propertyQName)
throws SchemaException
SchemaException
public <X> PrismProperty<X> findOrCreateProperty(PrismPropertyDefinition propertyDef)
throws SchemaException
SchemaException
public <X extends Containerable> PrismContainer<X> createContainer(javax.xml.namespace.QName containerName)
throws SchemaException
SchemaException
public <X> PrismProperty<X> createProperty(javax.xml.namespace.QName propertyName)
throws SchemaException
SchemaException
public <X> PrismProperty<X> createProperty(PrismPropertyDefinition propertyDefinition)
throws SchemaException
SchemaExceptionpublic void removeProperty(javax.xml.namespace.QName propertyName)
public void removeProperty(ItemPath propertyPath)
public void removeContainer(javax.xml.namespace.QName containerName)
public void removeContainer(ItemPath itemPath)
public void setPropertyRealValue(javax.xml.namespace.QName propertyName,
java.lang.Object realValue)
throws SchemaException
SchemaException
public <T> T getPropertyRealValue(javax.xml.namespace.QName propertyName,
java.lang.Class<T> type)
public void recompute(PrismContext prismContext)
recompute in class PrismValuepublic void accept(Visitor visitor)
accept in interface Visitableaccept in class PrismValuepublic boolean hasCompleteDefinition()
protected org.w3c.dom.Element createDomElement()
createDomElement in class PrismValuepublic boolean representsSameValue(PrismValue other)
PrismValue
representsSameValue in class PrismValuepublic boolean representsSameValue(PrismContainerValue<T> other)
public boolean isRaw()
PrismValue
isRaw in class PrismValuepublic java.util.List<java.lang.Object> getRawElements()
public void applyDefinition(ItemDefinition definition,
boolean force)
throws SchemaException
applyDefinition in class PrismValueSchemaException
public void applyDefinition(PrismContainerDefinition definition,
boolean force)
throws SchemaException
SchemaExceptionpublic void revive(PrismContext prismContext)
revive in class PrismValuepublic boolean isEmpty()
isEmpty in class PrismValuepublic void normalize()
normalize in class PrismValue
public void checkConsistenceInternal(Itemable rootItem,
ItemPath parentPath,
boolean requireDefinitions,
boolean prohibitRaw)
checkConsistenceInternal in class PrismValue
public void assertDefinitions(java.lang.String sourceDescription)
throws SchemaException
SchemaException
public void assertDefinitions(boolean tolerateRaw,
java.lang.String sourceDescription)
throws SchemaException
SchemaExceptionpublic PrismContainerValue<T> clone()
clone in class PrismValueprotected void copyValues(PrismContainerValue<T> clone)
public boolean equalsComplex(PrismValue other,
boolean ignoreMetadata,
boolean isLiteral)
equalsComplex in class PrismValue
public boolean equalsComplex(PrismContainerValue<?> other,
boolean ignoreMetadata,
boolean isLiteral)
public boolean equivalent(PrismContainerValue<?> other)
public boolean equals(java.lang.Object obj)
equals in class PrismValuepublic int hashCode()
hashCode in class PrismValuepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String dump()
Dumpable
dump in interface Dumpablepublic java.lang.String debugDump()
DebugDumpable
debugDump in interface DebugDumpablepublic java.lang.String debugDump(int indent)
debugDump in interface DebugDumpable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||