Class AbstractIRI.GenericIRI

java.lang.Object
org.eclipse.rdf4j.model.base.AbstractIRI
org.eclipse.rdf4j.model.base.AbstractIRI.GenericIRI
All Implemented Interfaces:
Serializable, IRI, Resource, Value
Enclosing class:
AbstractIRI

static class AbstractIRI.GenericIRI extends AbstractIRI
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • iri

      private final String iri
    • split

      private int split
  • Constructor Details

    • GenericIRI

      GenericIRI(String iri)
    • GenericIRI

      GenericIRI(String namespace, String localName)
  • Method Details

    • stringValue

      public String stringValue()
      Description copied from interface: Value
      Returns the String-value of a Value object. This returns either a Literal's label, a IRI's URI or a BNode's ID.
      Specified by:
      stringValue in interface Value
      Overrides:
      stringValue in class AbstractIRI
    • getNamespace

      public String getNamespace()
      Description copied from interface: IRI
      Gets the namespace part of this IRI.

      The namespace is defined as per the algorithm described in the class documentation.

      Returns:
      the namespace of this IRI
    • getLocalName

      public String getLocalName()
      Description copied from interface: IRI
      Gets the local name part of this IRI.

      The local name is defined as per the algorithm described in the class documentation.

      Returns:
      the local name of this IRI
    • split

      private int split()