|
||||||||||
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 String |
oid
|
protected 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(QName name,
Class<T> compileTimeClass)
|
|
PrismObject(QName name,
PrismObjectDefinition<T> definition,
PrismContext prismContext)
|
Method Summary | ||
---|---|---|
protected String |
additionalDumpDescription()
|
|
void |
addReplaceExisting(Item<?> item)
|
|
void |
applyDefinition(ItemDefinition definition)
|
|
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(Object obj)
Note: hashcode and equals compare the objects in the "java way". |
|
boolean |
equivalent(Object obj)
this method ignores some part of the object during comparison (e.g. |
|
Item<?> |
findItem(ItemPath path)
|
|
|
findItem(ItemPath path,
Class<I> type)
|
|
protected String |
getDebugDumpClassName()
Return a human readable name of this class suitable for logs. |
|
PrismObjectDefinition<T> |
getDefinition()
Returns applicable property container definition. |
|
PrismContainer<?> |
getExtension()
|
|
String |
getOid()
Returns Object ID (OID). |
|
PrismValue |
getParent()
|
|
ItemPath |
getPath(ItemPath pathPrefix)
|
|
String |
getVersion()
|
|
int |
hashCode()
Note: hashcode and equals compare the objects in the "java way". |
|
|
removeItem(ItemPath path,
Class<I> itemType)
|
|
void |
setOid(String oid)
|
|
void |
setParent(PrismValue parentValue)
|
|
void |
setVersion(String version)
|
|
String |
toDebugName()
Returns short string representing identity of this object. |
|
String |
toDebugType()
Returns short string identification of object type. |
|
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 String oid
protected String version
Constructor Detail |
---|
public PrismObject(QName name, Class<T> compileTimeClass)
public PrismObject(QName name, PrismObjectDefinition<T> definition, PrismContext prismContext)
Method Detail |
---|
public String getOid()
public void setOid(String oid)
public String getVersion()
public void setVersion(String version)
public PrismObjectDefinition<T> getDefinition()
PrismContainer
getDefinition
in interface Itemable
getDefinition
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, 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, Class<I> itemType)
removeItem
in class PrismContainer<T extends Objectable>
public void addReplaceExisting(Item<?> item) throws SchemaException
SchemaException
public 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 Itemable
getPath
in class Item<PrismContainerValue<T extends Objectable>>
public Element asDomElement()
PrismJaxbProcessor
(serializeToDom).
public int hashCode()
hashCode
in class PrismContainer<T extends Objectable>
public boolean equals(Object obj)
equals
in class PrismContainer<T extends Objectable>
public boolean equivalent(Object obj)
equivalent
in class PrismContainer<T extends Objectable>
public String toString()
toString
in class PrismContainer<T extends Objectable>
public String toDebugName()
public String toDebugType()
protected String getDebugDumpClassName()
getDebugDumpClassName
in class PrismContainer<T extends Objectable>
protected 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 |