| 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.
|
java.lang.String |
getName()
Name of tag (ie.
|
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(CharArray out)
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 TextTag.writeTo(com.opensymphony.module.sitemesh.html.util.CharArray)public void writeTo(CharArray out)
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 Tag