Interface ICustomReferencePolicy<TYPE>
-
- All Superinterfaces:
IReferencePolicy<TYPE>
- All Known Implementing Classes:
AbstractCustomReferencePolicy,AbstractMultiItemTypeReferencePolicy,AnchorReferencePolicy,InsertReferencePolicy,LinkReferencePolicy,PropertyReferencePolicy
public interface ICustomReferencePolicy<TYPE> extends IReferencePolicy<TYPE>
-
-
Field Summary
-
Fields inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.policy.IReferencePolicy
IGNORE_POLICY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IIdentifierParsergetIdentifierParser()Get the parser to use to parse an entity identifier from the reference text.StringgetReferenceText(TYPE reference)Retrieve the reference text from thereferenceobject.voidsetReferenceText(TYPE reference, String newReferenceText)Update the reference text used in thereferenceobject.-
Methods inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.policy.IReferencePolicy
handleReference
-
-
-
-
Method Detail
-
getIdentifierParser
@NonNull IIdentifierParser getIdentifierParser()
Get the parser to use to parse an entity identifier from the reference text.- Returns:
- the parser
-
getReferenceText
String getReferenceText(@NonNull TYPE reference)
Retrieve the reference text from thereferenceobject.- Parameters:
reference- the reference object- Returns:
- the reference text or
nullif there is no text
-
setReferenceText
void setReferenceText(@NonNull TYPE reference, @NonNull String newReferenceText)
Update the reference text used in thereferenceobject.- Parameters:
reference- the reference objectnewReferenceText- the reference text replacement
-
-