com.opensymphony.module.sitemesh.html.tokenizer
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
|---|---|
int |
attributeCount
|
String[] |
attributes
|
| Fields inherited from interface com.opensymphony.module.sitemesh.html.Tag |
|---|
CLOSE, CLOSE_MAGIC_COMMENT, EMPTY, OPEN, OPEN_MAGIC_COMMENT |
| Constructor Summary | |
|---|---|
Parser.ReusableToken()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int attributeCount
public String[] attributes
| Constructor Detail |
|---|
public Parser.ReusableToken()
| Method Detail |
|---|
public String getName()
Tag
public int getType()
Tag
public String getContents()
Tag
getContents in interface TaggetContents in interface Textpublic void writeTo(CharArray out)
Tag
public int getAttributeCount()
Tag
getAttributeCount in interface Tagpublic int getAttributeIndex(String name, boolean caseSensitive)
Tag
getAttributeIndex in interface Tagpublic String getAttributeName(int index)
Tag
getAttributeName in interface Tagpublic String getAttributeValue(int index)
Tag
getAttributeValue in interface Tagpublic String getAttributeValue(String name, boolean caseSensitive)
Tag
getAttributeValue in interface Tagpublic boolean hasAttribute(String name, boolean caseSensitive)
Tag
hasAttribute in interface Tag
|
www.opensymphony.com/sitemesh/ | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||