Package cz.vutbr.fit.layout.impl
Class DefaultTag
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.DefaultTag
-
- All Implemented Interfaces:
Tag
- Direct Known Subclasses:
MetaRefTag
public class DefaultTag extends Object implements Tag
A default simple tag implementation.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description DefaultTag(String name)
DefaultTag(String type, String name)
DefaultTag(org.eclipse.rdf4j.model.IRI iri, String type, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.rdf4j.model.IRI
createDefaultIri(String type, String name)
Creates a default IRI for a tag when no IRI is provided in constructor.boolean
equals(Object obj)
org.eclipse.rdf4j.model.IRI
getIri()
A unique tag IRI.String
getName()
Obtains the name of the tag.String
getType()
The tag type that allows to distinguish tags of different purposes and different source.int
hashCode()
void
setIri(org.eclipse.rdf4j.model.IRI iri)
void
setName(String name)
void
setType(String type)
String
toString()
-
-
-
Method Detail
-
getIri
public org.eclipse.rdf4j.model.IRI getIri()
Description copied from interface:Tag
A unique tag IRI.
-
setIri
public void setIri(org.eclipse.rdf4j.model.IRI iri)
-
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.
-
setType
public void setType(String type)
-
-