| Modifier and Type | Field and Description |
|---|---|
int |
attributeCount |
java.lang.String[] |
attributes |
CLOSE, CLOSE_MAGIC_COMMENT, EMPTY, OPEN, OPEN_MAGIC_COMMENT| Constructor and Description |
|---|
ReusableToken() |
| 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 buffer,
int position)
Write out the complete tag in its original form, preserving original formatting.
|
public int attributeCount
public java.lang.String[] attributes
public java.lang.String getName()
Tagpublic int getType()
Tagpublic java.lang.String getContents()
TaggetContents in interface TaggetContents in interface Textpublic void writeTo(SitemeshBufferFragment.Builder buffer, int position)
Tagpublic int getAttributeCount()
TaggetAttributeCount in interface Tagpublic int getAttributeIndex(java.lang.String name,
boolean caseSensitive)
TaggetAttributeIndex in interface Tagpublic java.lang.String getAttributeName(int index)
TaggetAttributeName in interface Tagpublic java.lang.String getAttributeValue(int index)
TaggetAttributeValue in interface Tagpublic java.lang.String getAttributeValue(java.lang.String name,
boolean caseSensitive)
TaggetAttributeValue in interface Tagpublic boolean hasAttribute(java.lang.String name,
boolean caseSensitive)
TaghasAttribute in interface Tagpublic int getPosition()
TaggetPosition in interface TaggetPosition in interface Text