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 IIdentifierParser
getIdentifierParser()
Get the parser to use to parse an entity identifier from the reference text.String
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 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 thereference
object.- Parameters:
reference
- the reference object- Returns:
- the reference text or
null
if there is no text
-
setReferenceText
void setReferenceText(@NonNull TYPE reference, @NonNull String newReferenceText)
Update the reference text used in thereference
object.- Parameters:
reference
- the reference objectnewReferenceText
- the reference text replacement
-
-