Modifier and Type | Field and Description |
---|---|
int |
attributeCount |
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(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.
|
public int attributeCount
public String[] attributes
public String getName()
Tag
public int getType()
Tag
public String getContents()
Tag
getContents
in interface Tag
getContents
in interface Text
Tag.writeTo(com.opensymphony.module.sitemesh.html.util.CharArray)
public void writeTo(CharArray out)
Tag
public int getAttributeCount()
Tag
getAttributeCount
in interface Tag
public int getAttributeIndex(String name, boolean caseSensitive)
Tag
getAttributeIndex
in interface Tag
public String getAttributeName(int index)
Tag
getAttributeName
in interface Tag
public String getAttributeValue(int index)
Tag
getAttributeValue
in interface Tag
public String getAttributeValue(String name, boolean caseSensitive)
Tag
getAttributeValue
in interface Tag
public boolean hasAttribute(String name, boolean caseSensitive)
Tag
hasAttribute
in interface Tag