Interface Namespace

All Superinterfaces:
Comparable<Namespace>, Serializable

public interface Namespace extends Comparable<Namespace>, Serializable

A namespace; an IRI and prefix pair that can be used during serialization to shorten a IRI to a `QName`. The iri() corresponds to the IRI.namespace() of an `IRI`.

Since:
0.1
Version:
0.1
Author:
Michael Grove
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    iri()
    The IRI of the namespace
    The prefix of the namespace

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • iri

      @Nonnull String iri()
      The IRI of the namespace
      Returns:
      the IRI
    • prefix

      @Nonnull String prefix()
      The prefix of the namespace
      Returns:
      the prefix