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()
Tag
public int getType()
Tag
public java.lang.String getContents()
Tag
getContents
in interface Tag
getContents
in interface Text
public void writeTo(SitemeshBufferFragment.Builder buffer, int position)
Tag
public int getAttributeCount()
Tag
getAttributeCount
in interface Tag
public int getAttributeIndex(java.lang.String name, boolean caseSensitive)
Tag
getAttributeIndex
in interface Tag
public java.lang.String getAttributeName(int index)
Tag
getAttributeName
in interface Tag
public java.lang.String getAttributeValue(int index)
Tag
getAttributeValue
in interface Tag
public java.lang.String getAttributeValue(java.lang.String name, boolean caseSensitive)
Tag
getAttributeValue
in interface Tag
public boolean hasAttribute(java.lang.String name, boolean caseSensitive)
Tag
hasAttribute
in interface Tag
public int getPosition()
Tag
getPosition
in interface Tag
getPosition
in interface Text