public class PrismReferenceValue extends PrismValue implements Dumpable, DebugDumpable, Serializable
domElement
INDENT_STRING
Constructor and Description |
---|
PrismReferenceValue() |
PrismReferenceValue(String oid) |
PrismReferenceValue(String oid,
OriginType type,
Objectable source) |
Modifier and Type | Method and Description |
---|---|
void |
applyDefinition(ItemDefinition definition,
boolean force) |
void |
applyDefinition(PrismReferenceDefinition definition,
boolean force) |
void |
checkConsistenceInternal(Itemable rootItem,
boolean requireDefinitions,
boolean prohibitRaw) |
PrismReferenceValue |
clone() |
protected void |
copyValues(PrismReferenceValue clone) |
protected Element |
createDomElement() |
static PrismReferenceValue |
createFromTarget(PrismObject<?> refTarget) |
String |
debugDump()
Show the content of the object intended for diagnostics by system administrator.
|
String |
debugDump(int indent) |
String |
debugDump(int indent,
boolean expandObject) |
String |
dump()
Show the content of the object intended for diagnostics by developer.
|
boolean |
equals(Object obj) |
boolean |
equalsComplex(PrismReferenceValue other,
boolean ignoreMetadata,
boolean isLiteral) |
boolean |
equalsComplex(PrismValue other,
boolean ignoreMetadata,
boolean isLiteral) |
Object |
find(ItemPath path) |
<X extends PrismValue> |
findPartial(ItemPath path) |
String |
getDescription() |
Element |
getFilter() |
PrismObject |
getObject() |
String |
getOid()
OID of the object that this reference refers to (reference target).
|
QName |
getRelation() |
QName |
getTargetType()
Returns XSD type of the object that this reference refers to.
|
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isRaw()
Returns true if the value is raw.
|
boolean |
match(PrismValue otherValue) |
void |
recompute(PrismContext prismContext) |
boolean |
representsSameValue(PrismReferenceValue other) |
boolean |
representsSameValue(PrismValue other)
Returns true if this and other value represent the same value.
|
void |
setDescription(String description) |
void |
setFilter(Element filter) |
void |
setObject(PrismObject object) |
void |
setOid(String oid) |
void |
setRelation(QName relation) |
void |
setTargetType(QName targetType) |
PrismReferenceValue |
toCannonical()
Returns a version of this value that is cannonical, that means it has the minimal form.
|
String |
toHumanReadableString()
Returns a short (one-line) representation of the real value stored in this object.
|
String |
toString() |
accept, accept, applyDefinition, asDomElement, clearDomElement, cloneCollection, cloneValues, containsRealValue, copyValues, diff, diff, equals, equals, equalsRealValue, equalsRealValue, getOriginObject, getOriginType, getParent, getPath, getPrismContext, getRealValuesOfCollection, normalize, recompute, resetParentCollection, revive, setOriginObject, setOriginType, setParent
public PrismReferenceValue()
public PrismReferenceValue(String oid)
public PrismReferenceValue(String oid, OriginType type, Objectable source)
public String getOid()
public void setOid(String oid)
public PrismObject getObject()
public void setObject(PrismObject object)
public QName getTargetType()
public void setTargetType(QName targetType)
public QName getRelation()
public void setRelation(QName relation)
public String getDescription()
public void setDescription(String description)
public Element getFilter()
public void setFilter(Element filter)
public boolean isRaw()
PrismValue
isRaw
in class PrismValue
public Object find(ItemPath path)
find
in class PrismValue
public <X extends PrismValue> PartiallyResolvedValue<X> findPartial(ItemPath path)
findPartial
in class PrismValue
public void applyDefinition(ItemDefinition definition, boolean force) throws SchemaException
applyDefinition
in class PrismValue
SchemaException
public void applyDefinition(PrismReferenceDefinition definition, boolean force) throws SchemaException
SchemaException
public void recompute(PrismContext prismContext)
recompute
in class PrismValue
protected Element createDomElement()
createDomElement
in class PrismValue
public void checkConsistenceInternal(Itemable rootItem, boolean requireDefinitions, boolean prohibitRaw)
checkConsistenceInternal
in class PrismValue
public boolean isEmpty()
isEmpty
in class PrismValue
public PrismReferenceValue toCannonical()
public boolean equalsComplex(PrismValue other, boolean ignoreMetadata, boolean isLiteral)
equalsComplex
in class PrismValue
public boolean equalsComplex(PrismReferenceValue other, boolean ignoreMetadata, boolean isLiteral)
public boolean equals(Object obj)
equals
in class PrismValue
public int hashCode()
hashCode
in class PrismValue
public boolean representsSameValue(PrismValue other)
PrismValue
representsSameValue
in class PrismValue
public boolean representsSameValue(PrismReferenceValue other)
public static PrismReferenceValue createFromTarget(PrismObject<?> refTarget)
public String debugDump()
DebugDumpable
debugDump
in interface DebugDumpable
public String debugDump(int indent)
debugDump
in interface DebugDumpable
public String debugDump(int indent, boolean expandObject)
public String dump()
Dumpable
public PrismReferenceValue clone()
clone
in class PrismValue
protected void copyValues(PrismReferenceValue clone)
public boolean match(PrismValue otherValue)
match
in class PrismValue
public String toHumanReadableString()
PrismValue
toHumanReadableString
in class PrismValue
Copyright © 2013 evolveum. All rights reserved.