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 Constructor Description AbstractIndexMissPolicyHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract boolean
handleIndexMiss(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, wait
-
Methods inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.policy.ICustomReferencePolicyHandler
handleIdentifierNonMatch, handleIndexHit
-
-
-
-
Constructor Detail
-
AbstractIndexMissPolicyHandler
public AbstractIndexMissPolicyHandler()
-
-
Method Detail
-
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:ICustomReferencePolicyHandler
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.- Specified by:
handleIndexMiss
in 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:
true
if the reference is considered handled, orfalse
otherwise
-
-