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.IRIcreateDefaultIri(String type, String name)Creates a default IRI for a tag when no IRI is provided in constructor.booleanequals(Object obj)org.eclipse.rdf4j.model.IRIgetIri()A unique tag IRI.StringgetName()Obtains the name of the tag.StringgetType()The tag type that allows to distinguish tags of different purposes and different source.inthashCode()voidsetIri(org.eclipse.rdf4j.model.IRI iri)voidsetName(String name)voidsetType(String type)StringtoString()
-
-
-
Method Detail
-
getIri
public org.eclipse.rdf4j.model.IRI getIri()
Description copied from interface:TagA 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:TagThe 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)
-
-