public abstract class Tag extends DataWithExtAttributes
Any object deriving from this class must also provide an implementation
for CloneFactory.create(Tag, Tags)
.
Modifier | Constructor and Description |
---|---|
protected |
Tag()
Creates an empty
Tag object. |
|
Tag(Tag original)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getId()
Gets the id for the code or annotation using this tag.
|
TagType |
getTagType()
Gets the
TagType value of this tag. |
abstract java.lang.String |
getType()
Gets the type of the code or marker this tag represents.
|
abstract boolean |
isCode()
Indicates if this tag is for a code (
CTag ). |
abstract boolean |
isMarker()
Indicates if this tag is for a marker (
MTag ). |
abstract void |
setType(java.lang.String type)
Sets the type of the code or marker (for both opening/closing tags).
|
java.lang.String |
toString() |
getExtAttributes, getExtAttributeValue, hasExtAttribute, setExtAttributes
protected TagType tagType
protected Tag()
Tag
object.public Tag(Tag original)
original
- the original object to duplicate.public java.lang.String toString()
toString
in class java.lang.Object
public TagType getTagType()
TagType
value of this tag.TagType
value of this tag.public abstract java.lang.String getId()
public abstract java.lang.String getType()
CTag
the type value can be null.public abstract void setType(java.lang.String type)
type
- the type of the code or marker this tag represents.public abstract boolean isMarker()
MTag
).