Interface IIdentifierParser
-
- All Known Implementing Classes:
PatternIdentifierParser
public interface IIdentifierParser
-
-
Field Summary
Fields Modifier and Type Field Description static IIdentifierParserFRAGMENT_PARSERstatic IIdentifierParserIDENTITY_PARSER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringparse(String referenceText)Parse thereferenceTextfor the identifier.Stringupdate(String referenceText, String newIdentifier)Substitute the providednewIdentifierwith the identifier in thereferenceText.
-
-
-
Field Detail
-
FRAGMENT_PARSER
@NonNull static final IIdentifierParser FRAGMENT_PARSER
-
IDENTITY_PARSER
@NonNull static final IIdentifierParser IDENTITY_PARSER
-
-
Method Detail
-
parse
@Nullable String parse(@NonNull String referenceText)
Parse thereferenceTextfor the identifier.- Parameters:
referenceText- the reference text containing the identifier- Returns:
- the identifier, or
nullif the identifier could not be parsed
-
update
@NonNull String update(@NonNull String referenceText, @NonNull String newIdentifier)
Substitute the providednewIdentifierwith the identifier in thereferenceText.- Parameters:
referenceText- the reference text containing the original identifiernewIdentifier- the new identifier to replace the existing identifier- Returns:
- the updated reference text with the identifier replaced
- Throws:
ProfileResolutionEvaluationException- if the identifier could not be updated
-
-