Class FixedStringIdentifierGenerationStrategy

  • All Implemented Interfaces:
    IdentifierGenerationStrategy

    @Deprecated(since="8.4.0",
                forRemoval=true)
    public class FixedStringIdentifierGenerationStrategy
    extends Object
    implements IdentifierGenerationStrategy
    Deprecated, for removal: This API element is subject to removal in a future version.
    Identifier generation strategy using a fixed identifier string. This can be used in circumstances where there is no requirement that identifiers be different from each other.
    • Field Detail

      • identifier

        @Nonnull
        @NotEmpty
        private final String identifier
        Deprecated, for removal: This API element is subject to removal in a future version.
        Fixed identifier to use for all invocations.
    • Constructor Detail

      • FixedStringIdentifierGenerationStrategy

        public FixedStringIdentifierGenerationStrategy​(@Nonnull @NotEmpty
                                                       String id)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Constructor.
        Parameters:
        id - fixed identifier to use for all invocations.
    • Method Detail

      • generateIdentifier

        @Nonnull
        @NotEmpty
        public String generateIdentifier()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Generates an identifier guaranteed to be XML ID safe.
        Specified by:
        generateIdentifier in interface IdentifierGenerationStrategy
        Returns:
        the identifier
      • generateIdentifier

        @Nonnull
        @NotEmpty
        public String generateIdentifier​(boolean xmlSafe)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Generates an identifier.
        Specified by:
        generateIdentifier in interface IdentifierGenerationStrategy
        Parameters:
        xmlSafe - true iff the result must be XML ID safe
        Returns:
        the identifier