Interface ICustomReferencePolicy<TYPE>
- All Superinterfaces:
IReferencePolicy<TYPE>
- All Known Implementing Classes:
AbstractCustomReferencePolicy
,AbstractMultiItemTypeReferencePolicy
,AnchorReferencePolicy
,InsertReferencePolicy
,LinkReferencePolicy
,PropertyReferencePolicy
-
Field Summary
Fields inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.policy.IReferencePolicy
IGNORE_POLICY
-
Method Summary
Modifier and TypeMethodDescriptionGet the parser to use to parse an entity identifier from the reference text.getReferenceText
(TYPE reference) Retrieve the reference text from thereference
object.void
setReferenceText
(TYPE reference, String newReferenceText) Update the reference text used in thereference
object.Methods inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.policy.IReferencePolicy
handleReference
-
Method Details
-
getIdentifierParser
Get the parser to use to parse an entity identifier from the reference text.- Returns:
- the parser
-
getReferenceText
Retrieve the reference text from thereference
object.- Parameters:
reference
- the reference object- Returns:
- the reference text or
null
if there is no text
-
setReferenceText
Update the reference text used in thereference
object.- Parameters:
reference
- the reference objectnewReferenceText
- the reference text replacement
-