Interface IIdentifierParser
-
- All Known Implementing Classes:
PatternIdentifierParser
public interface IIdentifierParser
-
-
Field Summary
Fields Modifier and Type Field Description static IIdentifierParser
FRAGMENT_PARSER
static IIdentifierParser
IDENTITY_PARSER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
parse(String referenceText)
Parse thereferenceText
for the identifier.String
update(String referenceText, String newIdentifier)
Substitute the providednewIdentifier
with 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 thereferenceText
for the identifier.- Parameters:
referenceText
- the reference text containing the identifier- Returns:
- the identifier, or
null
if the identifier could not be parsed
-
update
@NonNull String update(@NonNull String referenceText, @NonNull String newIdentifier)
Substitute the providednewIdentifier
with 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
-
-