Class DefaultTag

  • All Implemented Interfaces:
    Tag
    Direct Known Subclasses:
    MetaRefTag

    public class DefaultTag
    extends Object
    implements Tag
    A default simple tag implementation.
    Author:
    burgetr
    • Constructor Detail

      • DefaultTag

        public DefaultTag​(String name)
      • DefaultTag

        public DefaultTag​(String type,
                          String name)
      • DefaultTag

        public DefaultTag​(org.eclipse.rdf4j.model.IRI iri,
                          String type,
                          String name)
    • Method Detail

      • getIri

        public org.eclipse.rdf4j.model.IRI getIri()
        Description copied from interface: Tag
        A unique tag IRI.
        Specified by:
        getIri in interface Tag
        Returns:
      • setIri

        public void setIri​(org.eclipse.rdf4j.model.IRI iri)
      • getName

        public String getName()
        Description copied from interface: Tag
        Obtains the name of the tag.
        Specified by:
        getName in interface Tag
        Returns:
        the tag name
      • setName

        public void setName​(String name)
      • getType

        public String getType()
        Description copied from interface: Tag
        The tag type that allows to distinguish tags of different purposes and different source. Each tag source should have its own type.
        Specified by:
        getType in interface Tag
        Returns:
        the tag type string
      • setType

        public void setType​(String type)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • createDefaultIri

        public org.eclipse.rdf4j.model.IRI createDefaultIri​(String type,
                                                            String name)
        Creates a default IRI for a tag when no IRI is provided in constructor.
        Parameters:
        type -
        name -
        Returns: