|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.evolveum.midpoint.prism.Item<PrismContainerValue<V>>
com.evolveum.midpoint.prism.PrismContainer<T>
com.evolveum.midpoint.prism.PrismObject<T>
public class PrismObject<T extends Objectable>
Common supertype for all identity objects. Defines basic properties that each object must have to live in our system (identifier, name). Objects consists of identifier and name (see definition below) and a set of properties represented as XML elements in the object's body. The attributes are represented as first-level XML elements (tags) of the object XML representation and may be also contained in other tags (e.g. extension, attributes). The QName (namespace and local name) of the element holding the property is considered to be a property name. This class is named MidPointObject instead of Object to avoid confusion with java.lang.Object.
| Field Summary | |
|---|---|
protected java.lang.String |
oid
|
protected java.lang.String |
version
|
| Fields inherited from class com.evolveum.midpoint.prism.PrismContainer |
|---|
compileTimeClass |
| Fields inherited from class com.evolveum.midpoint.prism.Item |
|---|
definition, name, parent, prismContext |
| Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable |
|---|
INDENT_STRING |
| Constructor Summary | |
|---|---|
PrismObject(javax.xml.namespace.QName name,
java.lang.Class<T> compileTimeClass)
|
|
PrismObject(javax.xml.namespace.QName name,
PrismObjectDefinition<T> definition,
PrismContext prismContext)
|
|
| Method Summary | ||
|---|---|---|
protected java.lang.String |
additionalDumpDescription()
|
|
void |
addReplaceExisting(Item<?> item)
|
|
void |
applyDefinition(ItemDefinition definition)
|
|
org.w3c.dom.Element |
asDomElement()
Returns a live DOM representation of the object. |
|
T |
asObjectable()
|
|
PrismObject<T> |
clone()
|
|
protected void |
copyValues(PrismObject<T> clone)
|
|
ObjectDelta<T> |
createAddDelta()
|
|
ObjectDelta<T> |
createDeleteDelta()
|
|
ObjectDelta<T> |
createDelta(ChangeType changeType)
|
|
ObjectDelta<T> |
diff(PrismObject<T> other)
|
|
ObjectDelta<T> |
diff(PrismObject<T> other,
boolean ignoreMetadata,
boolean isLiteral)
|
|
boolean |
equals(java.lang.Object obj)
Note: hashcode and equals compare the objects in the "java way". |
|
boolean |
equivalent(java.lang.Object obj)
this method ignores some part of the object during comparison (e.g. |
|
Item<?> |
findItem(ItemPath path)
|
|
|
findItem(ItemPath path,
java.lang.Class<I> type)
|
|
protected java.lang.String |
getDebugDumpClassName()
Return a human readable name of this class suitable for logs. |
|
PrismObjectDefinition<T> |
getDefinition()
Returns applicable property container definition. |
|
PrismContainer<?> |
getExtension()
|
|
java.lang.String |
getOid()
Returns Object ID (OID). |
|
PrismValue |
getParent()
|
|
ItemPath |
getPath(ItemPath pathPrefix)
|
|
java.lang.String |
getVersion()
|
|
int |
hashCode()
Note: hashcode and equals compare the objects in the "java way". |
|
|
removeItem(ItemPath path,
java.lang.Class<I> itemType)
|
|
void |
setOid(java.lang.String oid)
|
|
void |
setParent(PrismValue parentValue)
|
|
void |
setVersion(java.lang.String version)
|
|
java.lang.String |
toDebugName()
Returns short string representing identity of this object. |
|
java.lang.String |
toDebugType()
Returns short string identification of object type. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class com.evolveum.midpoint.prism.Item |
|---|
accept, add, addAll, applyDefinition, asDomElements, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, clear, cloneCollection, contains, contains, containsRealValue, copyValues, createNewDefinitionlessItem, debugDump, diff, diff, diff, diffInternal, equalsRealValue, findValue, fixupDelta, getClonedValues, getDisplayName, getHelp, getName, getPrismContext, getUserData, getUserData, getValue, hasRaw, hasRealValue, hasValue, hasValue, isRaw, normalize, remove, remove, removeAll, replace, replaceAll, resetParentCollection, revive, setDefinition, setName, setPrismContext, setUserData, size |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.evolveum.midpoint.prism.Itemable |
|---|
getName, getPrismContext |
| Field Detail |
|---|
protected java.lang.String oid
protected java.lang.String version
| Constructor Detail |
|---|
public PrismObject(javax.xml.namespace.QName name,
java.lang.Class<T> compileTimeClass)
public PrismObject(javax.xml.namespace.QName name,
PrismObjectDefinition<T> definition,
PrismContext prismContext)
| Method Detail |
|---|
public java.lang.String getOid()
public void setOid(java.lang.String oid)
public java.lang.String getVersion()
public void setVersion(java.lang.String version)
public PrismObjectDefinition<T> getDefinition()
PrismContainer
getDefinition in interface ItemablegetDefinition in interface PrismContainerable<T extends Objectable>getDefinition in class PrismContainer<T extends Objectable>public T asObjectable()
public PrismContainer<?> getExtension()
public void applyDefinition(ItemDefinition definition)
throws SchemaException
applyDefinition in class PrismContainer<T extends Objectable>SchemaException
public <I extends Item<?>> I findItem(ItemPath path,
java.lang.Class<I> type)
findItem in class PrismContainer<T extends Objectable>public Item<?> findItem(ItemPath path)
findItem in class PrismContainer<T extends Objectable>
public <I extends Item<?>> void removeItem(ItemPath path,
java.lang.Class<I> itemType)
removeItem in class PrismContainer<T extends Objectable>
public void addReplaceExisting(Item<?> item)
throws SchemaException
SchemaExceptionpublic PrismObject<T> clone()
clone in class PrismContainer<T extends Objectable>protected void copyValues(PrismObject<T> clone)
public ObjectDelta<T> diff(PrismObject<T> other)
public ObjectDelta<T> diff(PrismObject<T> other,
boolean ignoreMetadata,
boolean isLiteral)
public ObjectDelta<T> createDelta(ChangeType changeType)
public ObjectDelta<T> createAddDelta()
public ObjectDelta<T> createDeleteDelta()
public void setParent(PrismValue parentValue)
setParent in class Item<PrismContainerValue<T extends Objectable>>public PrismValue getParent()
getParent in class Item<PrismContainerValue<T extends Objectable>>public ItemPath getPath(ItemPath pathPrefix)
getPath in interface ItemablegetPath in class Item<PrismContainerValue<T extends Objectable>>public org.w3c.dom.Element asDomElement()
PrismJaxbProcessor (serializeToDom).
public int hashCode()
hashCode in class PrismContainer<T extends Objectable>public boolean equals(java.lang.Object obj)
equals in class PrismContainer<T extends Objectable>public boolean equivalent(java.lang.Object obj)
equivalent in class PrismContainer<T extends Objectable>public java.lang.String toString()
toString in class PrismContainer<T extends Objectable>public java.lang.String toDebugName()
public java.lang.String toDebugType()
protected java.lang.String getDebugDumpClassName()
getDebugDumpClassName in class PrismContainer<T extends Objectable>protected java.lang.String additionalDumpDescription()
additionalDumpDescription in class PrismContainer<T extends Objectable>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||