|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sitemesh.tagprocessor.TagTokenizer.ReusableToken
public class TagTokenizer.ReusableToken
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.sitemesh.tagprocessor.Tag |
|---|
Tag.Type |
| Field Summary | |
|---|---|
int |
attributeCount
|
String[] |
attributes
|
| Constructor Summary | |
|---|---|
TagTokenizer.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 |
getName()
Name of tag (ie. |
Tag.Type |
getType()
Type of tag (e.g. |
boolean |
hasAttribute(String name,
boolean caseSensitive)
Determine if an attribute is present. |
String |
toString()
Get the complete tag in its original form, preserving original formatting. |
void |
writeTo(Appendable 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, wait, wait, wait |
| Field Detail |
|---|
public int attributeCount
public String[] attributes
| Constructor Detail |
|---|
public TagTokenizer.ReusableToken()
| Method Detail |
|---|
public String getName()
Tag
getName in interface Tagpublic Tag.Type getType()
Tag
getType in interface TagTag.Type
public void writeTo(Appendable out)
throws IOException
Tag
writeTo in interface TagIOExceptionpublic int getAttributeCount()
Tag
getAttributeCount in interface Tag
public 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 Tag
public String getAttributeValue(String name,
boolean caseSensitive)
Tag
getAttributeValue in interface Tag
public boolean hasAttribute(String name,
boolean caseSensitive)
Tag
hasAttribute in interface Tagpublic String toString()
TagThis has a slight overhead in that it needs to construct a String. For improved performance, use writeTo() instead.
toString in interface TagtoString in class ObjectTag.writeTo(Appendable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||