public class PrismObject<T extends Objectable> extends PrismContainer<T>
Modifier and Type | Field and Description |
---|---|
protected String |
oid |
protected String |
version |
compileTimeClass
definition, name, parent, prismContext
INDENT_STRING
Constructor and Description |
---|
PrismObject(QName name,
Class<T> compileTimeClass) |
PrismObject(QName name,
PrismObjectDefinition<T> definition,
PrismContext prismContext) |
Modifier and Type | Method and Description |
---|---|
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) |
<I extends Item<?>> |
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() |
String |
getVersion() |
int |
hashCode()
Note: hashcode and equals compare the objects in the "java way".
|
<I extends Item<?>> |
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() |
accept, add, assertDefinitions, canRepresent, checkConsistenceInternal, checkDefinition, containsEquivalentValue, copyValues, createDelta, createDelta, createNewValue, debugDump, dump, find, findContainer, findContainer, findItem, findItem, findOrCreateContainer, findOrCreateContainer, findOrCreateItem, findOrCreateItem, findOrCreateProperty, findOrCreateProperty, findOrCreateReference, findOrCreateReference, findPartial, findProperty, findProperty, findReference, findReference, findReferenceByCompositeObjectElementName, getCompileTimeClass, getNextValue, getPreviousValue, getPropertyRealValue, getValue, getValue, getValues, hasCompleteDefinition, isEmpty, mergeValue, mergeValues, mergeValues, newInstance, remove, removeContainer, removeContainer, removeProperty, removeProperty, removeReference, removeReference, setDefinition, setPropertyRealValue, setValue, trim
accept, add, addAll, applyDefinition, asDomElements, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, clear, cloneCollection, contains, contains, containsRealValue, copyValues, createNewDefinitionlessItem, debugDump, diff, diff, diffInternal, equalsRealValue, findValue, fixupDelta, getClonedValues, getDisplayName, getHelp, getName, getPrismContext, getUserData, getUserData, getValue, hasRaw, hasRealValue, hasValue, hasValue, isRaw, isSingleValue, match, normalize, remove, remove, removeAll, replace, replaceAll, resetParentCollection, revive, setDefinition, setName, setPrismContext, setUserData, size
finalize, getClass, notify, notifyAll, wait, wait, wait
getName, getPrismContext
public PrismObject(QName name, PrismObjectDefinition<T> definition, PrismContext prismContext)
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()
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>
Copyright © 2013 evolveum. All rights reserved.