Interface IReferencePolicy<T>

All Known Subinterfaces:
ICustomReferencePolicy<TYPE>
All Known Implementing Classes:
AbstractCustomReferencePolicy, AbstractMultiItemTypeReferencePolicy, AnchorReferencePolicy, InsertReferencePolicy, LinkReferencePolicy, PropertyReferencePolicy

public interface IReferencePolicy<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IReferencePolicy<Object>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    handleReference(gov.nist.secauto.metaschema.core.metapath.item.node.IModelNodeItem<?,?> contextItem, T reference, ReferenceCountingVisitor.Context referenceVisitorContext)
    Handle the provided reference.
    static <T> IReferencePolicy<T>
    Get a reference policy that will ignore processing the reference.
  • Field Details

  • Method Details

    • ignore

      @NonNull static <T> IReferencePolicy<T> 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 provided reference.
      Parameters:
      contextItem - the nodes containing the reference
      reference - the reference object to process
      referenceVisitorContext - used to lookup and resolve items
      Returns:
      true if the reference was handled, or false otherwise
      Throws:
      ProfileResolutionEvaluationException - if there was an error handing the reference