|
||||||||||
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 PrismValue
public PrismContainer<T> getContainer()
public ItemPath getPath(ItemPath pathPrefix)
getPath
in class PrismValue
public 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 existspublic void addReplaceExisting(Item<?> item) throws SchemaException
item
- item to add.
SchemaException
public 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
SchemaException
public void addAllReplaceExisting(java.util.Collection<? extends Item<?>> itemsToAdd)
itemsToAdd
- items to addpublic void replace(Item<?> oldItem, Item<?> newItem) throws SchemaException
SchemaException
public 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
SchemaException
public 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 PrismValue
public void accept(Visitor visitor)
accept
in interface Visitable
accept
in class PrismValue
public boolean hasCompleteDefinition()
protected org.w3c.dom.Element createDomElement()
createDomElement
in class PrismValue
public boolean representsSameValue(PrismValue other)
PrismValue
representsSameValue
in class PrismValue
public boolean representsSameValue(PrismContainerValue<T> other)
public boolean isRaw()
PrismValue
isRaw
in class PrismValue
public java.util.List<java.lang.Object> getRawElements()
public void applyDefinition(ItemDefinition definition, boolean force) throws SchemaException
applyDefinition
in class PrismValue
SchemaException
public void applyDefinition(PrismContainerDefinition definition, boolean force) throws SchemaException
SchemaException
public void revive(PrismContext prismContext)
revive
in class PrismValue
public boolean isEmpty()
isEmpty
in class PrismValue
public 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
SchemaException
public PrismContainerValue<T> clone()
clone
in class PrismValue
protected 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 PrismValue
public int hashCode()
hashCode
in class PrismValue
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String dump()
Dumpable
dump
in interface Dumpable
public java.lang.String debugDump()
DebugDumpable
debugDump
in interface DebugDumpable
public 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 |