com.evolveum.midpoint.prism
Class PrismReference
java.lang.Object
com.evolveum.midpoint.prism.Item<PrismReferenceValue>
com.evolveum.midpoint.prism.PrismReference
- All Implemented Interfaces:
- Itemable, Visitable, DebugDumpable, Dumpable, Serializable
public class PrismReference
- extends Item<PrismReferenceValue>
Object Reference is a property that describes reference to an object. It is
used to represent association between objects. For example reference from
User object to Account objects that belong to the user. The reference is a
simple uni-directional link using an OID as an identifier.
This type should be used for all object references so the implementations can
detect them and automatically resolve them.
- Author:
- semancik
- See Also:
- Serialized Form
Methods inherited from class com.evolveum.midpoint.prism.Item |
accept, addAll, applyDefinition, applyDefinition, asDomElements, assertDefinitions, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, checkConsistenceInternal, clear, cloneCollection, contains, contains, containsEquivalentValue, containsRealValue, copyValues, createNewDefinitionlessItem, debugDump, diff, diff, diff, diffInternal, dump, equals, equalsRealValue, findValue, fixupDelta, getClonedValues, getDisplayName, getHelp, getName, getNextValue, getParent, getPath, getPreviousValue, getPrismContext, getUserData, getUserData, getValue, hasCompleteDefinition, hashCode, hasRaw, hasRealValue, hasValue, hasValue, isEmpty, isRaw, normalize, remove, remove, removeAll, replace, replaceAll, resetParentCollection, revive, setDefinition, setName, setParent, setPrismContext, setUserData, size |
PrismReference
public PrismReference(QName name)
getDefinition
public PrismReferenceDefinition getDefinition()
- Returns applicable property definition.
May return null if no definition is applicable or the definition is not
know.
- Specified by:
getDefinition
in interface Itemable
- Overrides:
getDefinition
in class Item<PrismReferenceValue>
- Returns:
- applicable property definition
getValues
public List<PrismReferenceValue> getValues()
- Returns reference values.
The values are returned as set. The order of values is not significant.
- Overrides:
getValues
in class Item<PrismReferenceValue>
- Returns:
- property values
getValue
public PrismReferenceValue getValue()
add
public boolean add(PrismReferenceValue value)
- Overrides:
add
in class Item<PrismReferenceValue>
merge
public boolean merge(PrismReferenceValue value)
getOid
public String getOid()
findValueByOid
public PrismReferenceValue findValueByOid(String oid)
createDelta
public ReferenceDelta createDelta(ItemPath path)
- Description copied from class:
Item
- Creates specific sublcass of ItemDelta appropriate for type of item that this definition
represents (e.g. PropertyDelta, ContainerDelta, ...)
- Specified by:
createDelta
in class Item<PrismReferenceValue>
checkDefinition
protected void checkDefinition(ItemDefinition def)
- Specified by:
checkDefinition
in class Item<PrismReferenceValue>
clone
public PrismReference clone()
- Specified by:
clone
in class Item<PrismReferenceValue>
copyValues
protected void copyValues(PrismReference clone)
toString
public String toString()
- Overrides:
toString
in class Item<PrismReferenceValue>
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interface DebugDumpable
- Overrides:
debugDump
in class Item<PrismReferenceValue>
getDebugDumpClassName
protected String getDebugDumpClassName()
- Return a human readable name of this class suitable for logs.
- Overrides:
getDebugDumpClassName
in class Item<PrismReferenceValue>
Copyright © 2013 evolveum. All Rights Reserved.