Class AbstractMultiItemTypeReferencePolicy<TYPE>
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.profile.resolver.policy.AbstractCustomReferencePolicy<TYPE>
-
- gov.nist.secauto.oscal.lib.profile.resolver.policy.AbstractMultiItemTypeReferencePolicy<TYPE>
-
- All Implemented Interfaces:
ICustomReferencePolicy<TYPE>
,IReferencePolicy<TYPE>
- Direct Known Subclasses:
LinkReferencePolicy
,PropertyReferencePolicy
public abstract class AbstractMultiItemTypeReferencePolicy<TYPE> extends AbstractCustomReferencePolicy<TYPE>
-
-
Field Summary
-
Fields inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.policy.IReferencePolicy
IGNORE_POLICY
-
-
Constructor Summary
Constructors Constructor Description AbstractMultiItemTypeReferencePolicy(IIdentifierParser identifierParser, List<IEntityItem.ItemType> itemTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<IEntityItem.ItemType>
getEntityItemTypes(TYPE type)
Get the possible item types that can be searched in the order in which the identifier will be looked up.-
Methods inherited from class gov.nist.secauto.oscal.lib.profile.resolver.policy.AbstractCustomReferencePolicy
getIdentifierParser, handleIdentifier, handleIdentifierNonMatch, handleIndexHit, handleIndexMiss, handleReference, handleSelected, handleUnselected
-
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.ICustomReferencePolicy
getReferenceText, setReferenceText
-
-
-
-
Constructor Detail
-
AbstractMultiItemTypeReferencePolicy
public AbstractMultiItemTypeReferencePolicy(@NonNull IIdentifierParser identifierParser, @NonNull List<IEntityItem.ItemType> itemTypes)
-
-
Method Detail
-
getEntityItemTypes
protected List<IEntityItem.ItemType> getEntityItemTypes(@NonNull TYPE type)
Description copied from class:AbstractCustomReferencePolicy
Get the possible item types that can be searched in the order in which the identifier will be looked up.The
reference
object is provided to allow for context sensitive item type tailoring.- Specified by:
getEntityItemTypes
in classAbstractCustomReferencePolicy<TYPE>
- Parameters:
type
- the reference object- Returns:
- a list of item types to search for
-
-