CustomTag
, Parser.ReusableToken
public interface Tag
CustomTag
.TokenHandler
,
TagTokenizer
,
CustomTag
Modifier and Type | Field | Description |
---|---|---|
static int |
CLOSE |
|
static int |
CLOSE_MAGIC_COMMENT |
|
static int |
EMPTY |
|
static int |
OPEN |
|
static int |
OPEN_MAGIC_COMMENT |
Modifier and Type | Method | Description |
---|---|---|
int |
getAttributeCount() |
Number of attributes in tag.
|
int |
getAttributeIndex(String name,
boolean caseSensitive) |
Determine which attribute has the specified name.
|
String |
getAttributeName(int index) |
Get name of attribute.
|
String |
getAttributeValue(int index) |
Get value of an attribute.
|
String |
getAttributeValue(String name,
boolean caseSensitive) |
Get value of an attribute.
|
String |
getContents() |
Get the complete tag in its original form, preserving original formatting.
|
String |
getName() |
Name of tag (ie.
|
int |
getType() |
Type of tag:
<blah> - Tag.OPEN </blah> - Tag.CLOSE <blah/> - Tag.EMPTY |
boolean |
hasAttribute(String name,
boolean caseSensitive) |
Determine if an attribute is present.
|
void |
writeTo(CharArray out) |
Write out the complete tag in its original form, preserving original formatting.
|
static final int OPEN
static final int CLOSE
static final int EMPTY
static final int OPEN_MAGIC_COMMENT
static final int CLOSE_MAGIC_COMMENT
String getContents()
void writeTo(CharArray out)
String getName()
int getType()
int getAttributeCount()
int getAttributeIndex(String name, boolean caseSensitive)
String getAttributeName(int index)
String getAttributeValue(int index)
String getAttributeValue(String name, boolean caseSensitive)
boolean hasAttribute(String name, boolean caseSensitive)