com.evolveum.midpoint.prism
Class PrismReference

java.lang.Object
  extended by com.evolveum.midpoint.prism.Item<PrismReferenceValue>
      extended by 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

Field Summary
 
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
PrismReference(QName name)
           
 
Method Summary
 boolean add(PrismReferenceValue value)
           
protected  void checkDefinition(ItemDefinition def)
           
 PrismReference clone()
           
protected  void copyValues(PrismReference clone)
           
 ReferenceDelta createDelta(ItemPath path)
          Creates specific sublcass of ItemDelta appropriate for type of item that this definition represents (e.g.
 String debugDump(int indent)
           
 PrismReferenceValue findValueByOid(String oid)
           
protected  String getDebugDumpClassName()
          Return a human readable name of this class suitable for logs.
 PrismReferenceDefinition getDefinition()
          Returns applicable property definition.
 String getOid()
           
 PrismReferenceValue getValue()
           
 List<PrismReferenceValue> getValues()
          Returns reference values.
 boolean merge(PrismReferenceValue value)
           
 String toString()
           
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrismReference

public PrismReference(QName name)
Method Detail

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.