public interface Tag
CustomTag
.TokenHandler
,
TagTokenizer
,
CustomTag
Modifier and Type | Field and Description |
---|---|
static int |
CLOSE |
static int |
CLOSE_MAGIC_COMMENT |
static int |
EMPTY |
static int |
OPEN |
static int |
OPEN_MAGIC_COMMENT |
Modifier and Type | Method and Description |
---|---|
int |
getAttributeCount()
Number of attributes in tag.
|
int |
getAttributeIndex(java.lang.String name,
boolean caseSensitive)
Determine which attribute has the specified name.
|
java.lang.String |
getAttributeName(int index)
Get name of attribute.
|
java.lang.String |
getAttributeValue(int index)
Get value of an attribute.
|
java.lang.String |
getAttributeValue(java.lang.String name,
boolean caseSensitive)
Get value of an attribute.
|
java.lang.String |
getContents()
Get the complete tag in its original form, preserving original formatting.
|
int |
getLength()
The length of the tag
|
java.lang.String |
getName()
Name of tag (ie.
|
int |
getPosition()
The position of the tag
|
int |
getType()
Type of tag:
<blah> - Tag.OPEN </blah> - Tag.CLOSE <blah/> - Tag.EMPTY |
boolean |
hasAttribute(java.lang.String name,
boolean caseSensitive)
Determine if an attribute is present.
|
void |
writeTo(SitemeshBufferFragment.Builder fragment,
int position)
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
java.lang.String getContents()
void writeTo(SitemeshBufferFragment.Builder fragment, int position)
java.lang.String getName()
int getType()
int getAttributeCount()
int getAttributeIndex(java.lang.String name, boolean caseSensitive)
java.lang.String getAttributeName(int index)
java.lang.String getAttributeValue(int index)
java.lang.String getAttributeValue(java.lang.String name, boolean caseSensitive)
boolean hasAttribute(java.lang.String name, boolean caseSensitive)
int getPosition()
int getLength()