|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.prism.Item<V>
public abstract class Item<V extends PrismValue>
Item is a common abstraction of Property and PropertyContainer.
This is supposed to be a superclass for all items. Items are things that can appear in property containers, which generally means only a property and property container itself. Therefore this is in fact superclass for those two definitions.
Field Summary | |
---|---|
protected ItemDefinition |
definition
|
protected javax.xml.namespace.QName |
name
|
protected PrismValue |
parent
|
protected PrismContext |
prismContext
|
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable |
---|
INDENT_STRING |
Method Summary | ||
---|---|---|
void |
accept(Visitor visitor)
|
|
boolean |
add(V newValue)
|
|
boolean |
addAll(java.util.Collection<V> newValues)
|
|
void |
applyDefinition(ItemDefinition definition)
|
|
void |
applyDefinition(ItemDefinition definition,
boolean force)
|
|
java.util.List<org.w3c.dom.Element> |
asDomElements()
|
|
void |
assertDefinitions()
|
|
void |
assertDefinitions(boolean tolarateRawValues,
java.lang.String sourceDescription)
|
|
void |
assertDefinitions(java.lang.String sourceDescription)
|
|
void |
checkConsistence()
|
|
void |
checkConsistence(boolean requireDefinitions)
|
|
void |
checkConsistence(boolean requireDefinitions,
boolean prohibitRaw)
|
|
void |
checkConsistenceInternal(Itemable rootItem,
ItemPath path,
boolean requireDefinitions,
boolean prohibitRaw)
|
|
protected abstract void |
checkDefinition(ItemDefinition def)
|
|
void |
clear()
|
|
abstract Item |
clone()
|
|
static
|
cloneCollection(java.util.Collection<T> items)
|
|
boolean |
contains(V value)
|
|
boolean |
contains(V value,
boolean ignoreMetadata)
|
|
boolean |
containsEquivalentValue(V value)
|
|
boolean |
containsRealValue(V value)
|
|
protected void |
copyValues(Item clone)
|
|
abstract ItemDelta<V> |
createDelta(ItemPath path)
Creates specific sublcass of ItemDelta appropriate for type of item that this definition represents (e.g. |
|
static
|
createNewDefinitionlessItem(javax.xml.namespace.QName name,
java.lang.Class<T> type)
|
|
java.lang.String |
debugDump()
Provide terse and readable dump of the object suitable for log (at debug level). |
|
java.lang.String |
debugDump(int indent)
|
|
java.util.Collection<? extends ItemDelta> |
diff(Item<V> other)
|
|
java.util.Collection<? extends ItemDelta> |
diff(Item<V> other,
boolean ignoreMetadata,
boolean isLiteral)
|
|
java.util.Collection<? extends ItemDelta> |
diff(Item<V> other,
ItemPath pathPrefix,
boolean ignoreMetadata,
boolean isLiteral)
|
|
protected void |
diffInternal(Item<V> other,
ItemPath pathPrefix,
java.util.Collection<? extends ItemDelta> deltas,
boolean ignoreMetadata,
boolean isLiteral)
|
|
java.lang.String |
dump()
Show the content of the object intended for diagnostics by developer. |
|
boolean |
equals(java.lang.Object obj)
|
|
boolean |
equalsRealValue(java.lang.Object obj)
|
|
PrismValue |
findValue(PrismValue value,
boolean ignoreMetadata)
Returns value that is equal or equivalent to the provided value. |
|
protected ItemDelta |
fixupDelta(ItemDelta delta,
Item<V> other,
ItemPath pathPrefix,
boolean ignoreMetadata)
|
|
java.util.Collection<V> |
getClonedValues()
|
|
protected java.lang.String |
getDebugDumpClassName()
Return a human readable name of this class suitable for logs. |
|
ItemDefinition |
getDefinition()
Returns applicable property definition. |
|
java.lang.String |
getDisplayName()
Returns a display name for the property type. |
|
java.lang.String |
getHelp()
Returns help message defined for the property type. |
|
javax.xml.namespace.QName |
getName()
Returns the name of the property. |
|
PrismValue |
getNextValue(PrismValue value)
Returns values that is following the specified value. |
|
PrismValue |
getParent()
|
|
ItemPath |
getPath(ItemPath pathPrefix)
|
|
PrismValue |
getPreviousValue(PrismValue value)
Returns value that is previous to the specified value. |
|
PrismContext |
getPrismContext()
|
|
java.util.Map<java.lang.String,java.lang.Object> |
getUserData()
|
|
java.lang.Object |
getUserData(java.lang.String key)
|
|
V |
getValue(int index)
|
|
java.util.List<V> |
getValues()
|
|
boolean |
hasCompleteDefinition()
|
|
int |
hashCode()
|
|
boolean |
hasRaw()
Returns true is at least one of the values is raw. |
|
boolean |
hasRealValue(PrismValue value)
|
|
boolean |
hasValue(PrismValue value)
|
|
boolean |
hasValue(PrismValue value,
boolean ignoreMetadata)
|
|
boolean |
isEmpty()
|
|
boolean |
isRaw()
Returns true is all the values are raw. |
|
void |
normalize()
|
|
V |
remove(int index)
|
|
boolean |
remove(V newValue)
|
|
boolean |
removeAll(java.util.Collection<V> newValues)
|
|
void |
replace(V newValue)
|
|
void |
replaceAll(java.util.Collection<V> newValues)
|
|
static
|
resetParentCollection(java.util.Collection<T> items)
Sets all parents to null. |
|
void |
revive(PrismContext prismContext)
|
|
void |
setDefinition(ItemDefinition definition)
Sets applicable property definition. |
|
void |
setName(javax.xml.namespace.QName name)
Sets the name of the property. |
|
void |
setParent(PrismValue parentValue)
|
|
void |
setPrismContext(PrismContext prismContext)
|
|
void |
setUserData(java.lang.String key,
java.lang.Object value)
|
|
int |
size()
|
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.xml.namespace.QName name
protected PrismValue parent
protected ItemDefinition definition
protected transient PrismContext prismContext
Method Detail |
---|
public ItemDefinition getDefinition()
getDefinition
in interface Itemable
public boolean hasCompleteDefinition()
public javax.xml.namespace.QName getName()
getName
in interface Itemable
public void setName(javax.xml.namespace.QName name)
name
- the name to setpublic void setDefinition(ItemDefinition definition)
definition
- the definition to setpublic java.lang.String getDisplayName()
public java.lang.String getHelp()
public PrismContext getPrismContext()
getPrismContext
in interface Itemable
public void setPrismContext(PrismContext prismContext)
public PrismValue getParent()
public void setParent(PrismValue parentValue)
public ItemPath getPath(ItemPath pathPrefix)
getPath
in interface Itemable
public java.util.Map<java.lang.String,java.lang.Object> getUserData()
public java.lang.Object getUserData(java.lang.String key)
public void setUserData(java.lang.String key, java.lang.Object value)
public java.util.List<V> getValues()
public V getValue(int index)
public boolean hasValue(PrismValue value, boolean ignoreMetadata)
public boolean hasValue(PrismValue value)
public boolean hasRealValue(PrismValue value)
public PrismValue findValue(PrismValue value, boolean ignoreMetadata)
public PrismValue getPreviousValue(PrismValue value)
public PrismValue getNextValue(PrismValue value)
public java.util.Collection<V> getClonedValues()
public boolean contains(V value)
public boolean containsEquivalentValue(V value)
public boolean contains(V value, boolean ignoreMetadata)
public boolean containsRealValue(V value)
public int size()
public boolean addAll(java.util.Collection<V> newValues) throws SchemaException
SchemaException
public boolean add(V newValue) throws SchemaException
SchemaException
public boolean removeAll(java.util.Collection<V> newValues)
public boolean remove(V newValue)
public V remove(int index)
public void replaceAll(java.util.Collection<V> newValues) throws SchemaException
SchemaException
public void replace(V newValue)
public void clear()
public void normalize()
public java.util.List<org.w3c.dom.Element> asDomElements()
public java.util.Collection<? extends ItemDelta> diff(Item<V> other)
public java.util.Collection<? extends ItemDelta> diff(Item<V> other, boolean ignoreMetadata, boolean isLiteral)
public java.util.Collection<? extends ItemDelta> diff(Item<V> other, ItemPath pathPrefix, boolean ignoreMetadata, boolean isLiteral)
protected void diffInternal(Item<V> other, ItemPath pathPrefix, java.util.Collection<? extends ItemDelta> deltas, boolean ignoreMetadata, boolean isLiteral)
protected ItemDelta fixupDelta(ItemDelta delta, Item<V> other, ItemPath pathPrefix, boolean ignoreMetadata)
public abstract ItemDelta<V> createDelta(ItemPath path)
public void accept(Visitor visitor)
accept
in interface Visitable
public void applyDefinition(ItemDefinition definition) throws SchemaException
SchemaException
public void applyDefinition(ItemDefinition definition, boolean force) throws SchemaException
SchemaException
public void revive(PrismContext prismContext)
public abstract Item clone()
clone
in class java.lang.Object
protected void copyValues(Item clone)
public static <T extends Item> java.util.Collection<T> cloneCollection(java.util.Collection<T> items)
public static <T extends Item> java.util.Collection<T> resetParentCollection(java.util.Collection<T> items)
public static <T extends Item> T createNewDefinitionlessItem(javax.xml.namespace.QName name, java.lang.Class<T> type)
public void checkConsistence(boolean requireDefinitions)
public void checkConsistence(boolean requireDefinitions, boolean prohibitRaw)
public void checkConsistence()
public void checkConsistenceInternal(Itemable rootItem, ItemPath path, boolean requireDefinitions, boolean prohibitRaw)
protected abstract void checkDefinition(ItemDefinition def)
public void assertDefinitions() throws SchemaException
SchemaException
public void assertDefinitions(java.lang.String sourceDescription) throws SchemaException
SchemaException
public void assertDefinitions(boolean tolarateRawValues, java.lang.String sourceDescription) throws SchemaException
SchemaException
public boolean isRaw()
public boolean hasRaw()
public boolean isEmpty()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equalsRealValue(java.lang.Object obj)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
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()
debugDump
in interface DebugDumpable
public java.lang.String debugDump(int indent)
debugDump
in interface DebugDumpable
protected java.lang.String getDebugDumpClassName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |