Interface VersionedNamespace<V extends Comparable<V>,N extends VersionedFeature<V,N>>

All Superinterfaces:
Feature, org.jboss.staxmapper.Namespace, org.jboss.staxmapper.Versioned<V,N>, VersionedFeature<V,N>
All Known Implementing Classes:
SimpleVersionedNamespace, VersionedURN

public interface VersionedNamespace<V extends Comparable<V>,N extends VersionedFeature<V,N>> extends VersionedFeature<V,N>, org.jboss.staxmapper.Namespace
A versioned namespace.
Author:
Paul Ferraro
  • Method Details

    • createURN

      static <V extends Comparable<V>, N extends VersionedFeature<V, N>> VersionedNamespace<V,N> createURN(List<String> identifiers, V version)
      Type Parameters:
      V - the version type
      N - the namespace type
      Parameters:
      identifiers - a list of namespace identifiers
      version - a version
      Returns:
      a versioned URN
    • createURN

      static <V extends Comparable<V>, N extends VersionedFeature<V, N>> VersionedNamespace<V,N> createURN(List<String> identifiers, Stability stability, V version)
      Type Parameters:
      V - the version type
      N - the namespace type
      Parameters:
      identifiers - a list of namespace identifiers
      stability - the stability of this namespace version variant
      version - a version
      Returns:
      a versioned URN
    • createURN

      static <V extends Comparable<V>, N extends VersionedFeature<V, N>> VersionedNamespace<V,N> createURN(List<String> identifiers, V version, Function<V,String> versionFormatter)
      Creates a URN using the specified identifiers, version, and version formatter.
      Type Parameters:
      V - the version type
      N - the namespace type
      Parameters:
      identifiers - a list of namespace identifiers
      version - a version
      versionFormatter - a version formatter
      Returns:
      a versioned URN
    • createURN

      static <V extends Comparable<V>, N extends VersionedFeature<V, N>> VersionedNamespace<V,N> createURN(List<String> identifiers, Stability stability, V version, Function<V,String> versionFormatter)
      Creates a URN using the specified identifiers, stability, version, and version formatter.
      Type Parameters:
      V - the version type
      N - the namespace type
      Parameters:
      identifiers - a list of namespace identifiers
      stability - the stabilty of this namespace version variant
      version - a version
      versionFormatter - a version formatter
      Returns:
      a versioned URN