Interface IIdentifierParser

All Known Implementing Classes:
PatternIdentifierParser

public interface IIdentifierParser
  • Field Details

  • Method Details

    • parse

      @Nullable String parse(@NonNull String referenceText)
      Parse the referenceText 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 provided newIdentifier with the identifier in the referenceText.
      Parameters:
      referenceText - the reference text containing the original identifier
      newIdentifier - 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