|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.module.sitemesh.html.tokenizer.Parser.ReusableToken
public class Parser.ReusableToken
Field Summary | |
---|---|
int |
attributeCount
|
java.lang.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(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int attributeCount
public java.lang.String[] attributes
Constructor Detail |
---|
public Parser.ReusableToken()
Method Detail |
---|
public java.lang.String getName()
Tag
getName
in interface Tag
public int getType()
Tag
getType
in interface Tag
public java.lang.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
writeTo
in interface Tag
writeTo
in interface Text
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
|
www.opensymphony.com/sitemesh/ | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |