Interface IReferencePolicy<T>
- All Known Subinterfaces:
ICustomReferencePolicy<TYPE>
- All Known Implementing Classes:
AbstractCustomReferencePolicy
,AbstractMultiItemTypeReferencePolicy
,AnchorReferencePolicy
,InsertReferencePolicy
,LinkReferencePolicy
,PropertyReferencePolicy
public interface IReferencePolicy<T>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
handleReference
(gov.nist.secauto.metaschema.core.metapath.item.node.IModelNodeItem<?, ?> contextItem, T reference, ReferenceCountingVisitor.Context referenceVisitorContext) Handle the providedreference
.static <T> IReferencePolicy<T>
ignore()
Get a reference policy that will ignore processing the reference.
-
Field Details
-
IGNORE_POLICY
-
-
Method Details
-
ignore
Get a reference policy that will ignore processing the reference.- Type Parameters:
T
- the type of the reference object- Returns:
- the policy
-
handleReference
boolean handleReference(@NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IModelNodeItem<?, ?> contextItem, @NonNull T reference, @NonNull ReferenceCountingVisitor.Context referenceVisitorContext) Handle the providedreference
.- Parameters:
contextItem
- the nodes containing the referencereference
- the reference object to processreferenceVisitorContext
- used to lookup and resolve items- Returns:
true
if the reference was handled, orfalse
otherwise- Throws:
ProfileResolutionEvaluationException
- if there was an error handing the reference
-