Package com.evolveum.midpoint.prism
Interface PrismReferenceValue
- 
- All Superinterfaces:
- DebugDumpable,- Freezable,- MidpointOriginMetadata,- PathVisitable,- PrismContextSensitive,- PrismValue,- Revivable,- Serializable,- ShortDumpable,- Visitable
 
 public interface PrismReferenceValue extends PrismValue, ShortDumpable - Author:
- Radovan Semancik
 
- 
- 
Field Summary- 
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
 
- 
 - 
Method Summary- 
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDump, debugDumpLazily, debugDumpLazily
 - 
Methods inherited from interface com.evolveum.midpoint.prism.FreezablecheckImmutable, checkMutable, freeze, isImmutable
 - 
Methods inherited from interface com.evolveum.midpoint.prism.metadata.MidpointOriginMetadatagetOriginObject, getOriginType, setOriginObject, setOriginType
 - 
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitivegetPrismContext
 - 
Methods inherited from interface com.evolveum.midpoint.prism.PrismValueaccept, accept, applyDefinition, checkConsistenceInternal, clearParent, diff, equals, equals, find, getAllItems, getAllValues, getParent, getParentContainerValue, getPath, getRealValueOrRawType, getRootValue, getTypeName, getUserData, getUserData, getValueMetadata, getValueMetadataAsContainer, hashCode, hashCode, hasRealClass, hasValueMetadata, isEmpty, isRaw, isTransient, normalize, recompute, recompute, representsSameValue, setParent, setPrismContext, setTransient, setUserData, setValueMetadata, setValueMetadata, setValueMetadata, toHumanReadableString, valueMetadata
 - 
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpableshortDump, shortDump, shortDumpLazily
 
- 
 
- 
- 
- 
Method Detail- 
getOidString getOid() OID of the object that this reference refers to (reference target). May return null, but the reference is in that case incomplete and unusable.- Returns:
- the target oid
 
 - 
setOidvoid setOid(String oid) 
 - 
getObject<O extends Objectable> PrismObject<O> getObject() Returns object that this reference points to. The object is supposed to be used for caching and optimizations. Only oid and type of the object really matters for the reference. The object is transient. It will NOT be serialized. Therefore the client must expect that the object can disappear when serialization boundary is crossed. The client must expect that the object is null.
 - 
setObjectvoid setObject(PrismObject<?> object) 
 - 
getTargetTypeQName getTargetType() Returns XSD type of the object that this reference refers to. It may be used in XPath expressions and similar filters. May return null if the type name is not set.- Returns:
- the target type name
 
 - 
setTargetTypevoid setTargetType(QName targetType) 
 - 
setTargetTypevoid setTargetType(QName targetType, boolean allowEmptyNamespace) - Parameters:
- allowEmptyNamespace- This is an ugly hack. See comment in DOMUtil.validateNonEmptyQName.
 
 - 
getTargetNamePolyString getTargetName() Returns cached name of the target object. This is a ephemeral value. It may be computed at object retrieval time or it may not be present at all. This is NOT an authoritative information. Setting it or changing it will not influence the reference meaning. OID is the only authoritative linking mechanism.- Returns:
- cached name of the target object.
 
 - 
setTargetNamevoid setTargetName(PolyString name) 
 - 
setTargetNamevoid setTargetName(PolyStringType name) 
 - 
getTargetTypeCompileTimeClassClass<Objectable> getTargetTypeCompileTimeClass() 
 - 
getTargetTypeCompileTimeClassClass<Objectable> getTargetTypeCompileTimeClass(PrismContext prismContext) 
 - 
getRelationQName getRelation() 
 - 
setRelationvoid setRelation(QName relation) 
 - 
relationPrismReferenceValue relation(QName relation) 
 - 
getDescriptionString getDescription() 
 - 
setDescriptionvoid setDescription(String description) 
 - 
getFilterSearchFilterType getFilter() 
 - 
setFiltervoid setFilter(SearchFilterType filter) 
 - 
getResolutionTimeEvaluationTimeType getResolutionTime() 
 - 
setResolutionTimevoid setResolutionTime(EvaluationTimeType resolutionTime) 
 - 
getReferentialIntegrityReferentialIntegrityType getReferentialIntegrity() 
 - 
setReferentialIntegrityvoid setReferentialIntegrity(ReferentialIntegrityType referentialIntegrity) 
 - 
getDefinitionPrismReferenceDefinition getDefinition() 
 - 
findPartial<IV extends PrismValue,ID extends ItemDefinition<?>> PartiallyResolvedItem<IV,ID> findPartial(ItemPath path) 
 - 
applyDefinitionvoid applyDefinition(ItemDefinition definition, boolean force) throws SchemaException - Specified by:
- applyDefinitionin interface- PrismValue
- Throws:
- SchemaException
 
 - 
applyDefinitionvoid applyDefinition(PrismReferenceDefinition definition, boolean force) throws SchemaException - Throws:
- SchemaException
 
 - 
toCanonicalPrismReferenceValue toCanonical() Returns a version of this value that is canonical, that means it has the minimal form. E.g. it will have only OID and no object.
 - 
asReferencableReferencable asReferencable() 
 - 
debugDumpString debugDump(int indent, boolean expandObject) 
 - 
clonePrismReferenceValue clone() Description copied from interface:PrismValueLiteral clone.- Specified by:
- clonein interface- PrismValue
 
 - 
createImmutableClonePrismReferenceValue createImmutableClone() - Specified by:
- createImmutableClonein interface- PrismValue
 
 - 
cloneComplexPrismReferenceValue cloneComplex(CloneStrategy strategy) Description copied from interface:PrismValueComplex clone with different cloning strategies.- Specified by:
- cloneComplexin interface- PrismValue
- See Also:
- CloneStrategy
 
 - 
getRealClassClass<?> getRealClass() - Specified by:
- getRealClassin interface- PrismValue
 
 - 
getRealValue@Nullable @Nullable Referencable getRealValue() Description copied from interface:PrismValueReturns the statically-typed "real value". TODO specify when exactly the returned value can be null. TODO decide for containers: they throw an exception if the value is not statically typed.- Specified by:
- getRealValuein interface- PrismValue
 
 - 
findReferencedItem@Experimental <I extends Item<?,?>> I findReferencedItem(ItemPath path, Class<I> type) 
 
- 
 
-