Interface MetaIdentifierTransformer

All Known Implementing Classes:
DelegateMetaIdentifierTransformer, StandardMetaIdentifierTransformer

public interface MetaIdentifierTransformer

Converts a MetaIdentifier to and from a string.

Note that this tool on its own is not sufficient to create a serialization suitable for a URI path component, nor to deserialize a URI path component, as it does not perform URL coding or anything else. Look to MetaIdentifier.fromURI(String, Delegate) and MetaIdentifier.forURI(Delegate) instead.

  • Method Details

    • deserialize

      MetaIdentifier deserialize(String metaIdentifier)

      Deserializes the given meta-identifier string into its component parts.

      If the string cannot be parsed, it is set as the returned instance's MetaIdentifier.identifier() identifier property}.

      Parameters:
      metaIdentifier - Meta-identifier string to deserialize. The string has already been URL-decoded and had slashes substituted.
    • serialize

      String serialize(MetaIdentifier metaIdentifier)

      Serializes an instance.

      Parameters:
      metaIdentifier - Instance to serialize.
      Returns:
      Serialized instance, not yet URL-encoded or with slashes substituted.