Class AbstractIndexMissPolicyHandler<TYPE>
java.lang.Object
gov.nist.secauto.oscal.lib.profile.resolver.policy.AbstractIndexMissPolicyHandler<TYPE>
- All Implemented Interfaces:
ICustomReferencePolicyHandler<TYPE>
public abstract class AbstractIndexMissPolicyHandler<TYPE>
extends Object
implements ICustomReferencePolicyHandler<TYPE>
-
Field Summary
Fields inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.policy.ICustomReferencePolicyHandler
IGNORE_INDEX_MISS_POLICY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanhandleIndexMiss(ICustomReferencePolicy<TYPE> policy, TYPE type, List<IEntityItem.ItemType> itemTypes, String identifier, IReferenceVisitor<?> visitor) A callback used to handle the case where an identifier could be parsed from the reference text, but the index didn't contain a matching entity.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.policy.ICustomReferencePolicyHandler
handleIdentifierNonMatch, handleIndexHit
-
Constructor Details
-
AbstractIndexMissPolicyHandler
public AbstractIndexMissPolicyHandler()
-
-
Method Details
-
handleIndexMiss
public abstract boolean handleIndexMiss(@NonNull ICustomReferencePolicy<TYPE> policy, @NonNull TYPE type, @NonNull List<IEntityItem.ItemType> itemTypes, @NonNull String identifier, @NonNull IReferenceVisitor<?> visitor) Description copied from interface:ICustomReferencePolicyHandlerA callback used to handle the case where an identifier could be parsed from the reference text, but the index didn't contain a matching entity.- Specified by:
handleIndexMissin interfaceICustomReferencePolicyHandler<TYPE>- Parameters:
policy- the reference policy for this referencetype- the reference objectitemTypes- the item types that were checkedidentifier- the parsed identifiervisitor- the reference visitor used to resolve referenced objects- Returns:
trueif the reference is considered handled, orfalseotherwise
-