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 |
|---|---|
boolean |
equals(Object other)
Indicates if this tag is equal to another.
|
abstract String |
getId()
Gets the id for the code or annotation using this tag.
|
TagType |
getTagType()
Gets the
TagType value of this tag. |
abstract String |
getType()
Gets the type of the code or marker this tag represents.
|
int |
hashCode() |
abstract boolean |
isCode()
Indicates if this tag is for a code (
CTag). |
abstract boolean |
isMarker()
Indicates if this tag is for a marker (
MTag). |
void |
setTagType(TagType tagType)
Sets the
TagType value of this tag. |
abstract void |
setType(String type)
Sets the type of the code or marker (for both opening/closing tags).
|
String |
toString() |
getExtAttributes, getExtAttributeValue, hasExtAttribute, setExtAttributesprotected TagType tagType
protected Tag()
Tag object.public Tag(Tag original)
original - the original object to duplicate.public TagType getTagType()
TagType value of this tag.TagType value of this tag.public void setTagType(TagType tagType)
TagType value of this tag.tagType - the TagType to set.public abstract String getId()
public abstract String getType()
CTag the type value can be null.public abstract void setType(String type)
type - the type of the code or marker this tag represents.public abstract boolean isMarker()
MTag).public abstract boolean isCode()
CTag).public boolean equals(Object other)
Use the == operator to test if two tags are the same.
equals in class DataWithExtAttributesother - the other tag to compare to this one.public int hashCode()
hashCode in class DataWithExtAttributesCopyright © 2022. All rights reserved.