public class MTag extends Tag implements IWithITSAttributes
| Modifier and Type | Field and Description |
|---|---|
protected MTagCommon |
mc |
static String |
TYPE_DEFAULT
Default type of a marker.
|
| Constructor and Description |
|---|
MTag(MTag opposite)
Creates a new opening or closing tag for a marker.
|
MTag(MTag original,
MTag opposite)
Copy constructor.
|
MTag(String id,
String type)
Creates a new opening tag for a marker.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Indicates if this tag is equal to another.
|
String |
getId()
Gets the id for the code or annotation using this tag.
|
ITSItems |
getITSItems()
Gets the ITS items associated with this object.
|
String |
getRef()
Gets the URI reference for this marker.
|
Boolean |
getTranslate()
Gets the translate property for this marker.
|
String |
getType()
Gets the type of the code or marker this tag represents.
|
String |
getValue()
Gets the value for this marker.
|
int |
hashCode() |
boolean |
hasITSItem()
Indicates if the object has at least one ITS item.
|
boolean |
isCode()
Indicates if this tag is for a code (
CTag). |
boolean |
isMarker()
Indicates if this tag is for a marker (
MTag). |
void |
setITSItems(ITSItems itsItems)
Sets the list of the ITS items associated with this object.
|
void |
setRef(String ref)
Sets the URI reference for this marker (for both opening/closing tags).
|
void |
setTranslate(Boolean translate)
Sets the translate property for this marker (for both opening/closing tags).
|
void |
setType(String type)
Sets the type of the code or marker (for both opening/closing tags).
|
void |
setValue(String value)
sets the value for this marker (for both opening/closing tags).
|
getTagType, toStringgetExtAttributes, getExtAttributeValue, hasExtAttribute, setExtAttributespublic static final String TYPE_DEFAULT
protected MTagCommon mc
public MTag(String id, String type)
id - the ID of the new marker.type - the type of the new marker (can be null for the default type).public MTag(MTag opposite)
opposite - the counterpart tag to connect to this new opening or closing tag.public String getId()
TaggetId in interface IWithITSAttributesgetId in class Tagpublic String getType()
Tagpublic void setType(String type)
Tagpublic String getRef()
public void setRef(String ref)
ref - the new URI reference for this marker (can be null).public String getValue()
public void setValue(String value)
value - the new value for this marker.public Boolean getTranslate()
public void setTranslate(Boolean translate)
translate - the new translate property (can be null).public boolean equals(Object other)
TagUse the == operator to test if two tags are the same.
public boolean isMarker()
TagMTag).public boolean isCode()
TagCTag).public boolean hasITSItem()
IWithITSAttributeshasITSItem in interface IWithITSAttributespublic ITSItems getITSItems()
IWithITSAttributesgetITSItems in interface IWithITSAttributespublic void setITSItems(ITSItems itsItems)
IWithITSAttributessetITSItems in interface IWithITSAttributesitsItems - the new items to set.Copyright © 2020. All rights reserved.