public class TagTokenizer.ReusableToken extends Object implements Tag
| Modifier and Type | Field and Description |
|---|---|
int |
attributeCount |
String[] |
attributes |
| Constructor and Description |
|---|
TagTokenizer.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 |
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.
|
public int attributeCount
public String[] attributes
public String getName()
Tagpublic Tag.Type getType()
Tagpublic void writeTo(Appendable out) throws IOException
TagwriteTo in interface TagIOExceptionpublic int getAttributeCount()
TaggetAttributeCount in interface Tagpublic int getAttributeIndex(String name, boolean caseSensitive)
TaggetAttributeIndex in interface Tagpublic String getAttributeName(int index)
TaggetAttributeName in interface Tagpublic String getAttributeValue(int index)
TaggetAttributeValue in interface Tagpublic String getAttributeValue(String name, boolean caseSensitive)
TaggetAttributeValue in interface Tagpublic boolean hasAttribute(String name, boolean caseSensitive)
TaghasAttribute 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)Copyright © 2015. All Rights Reserved.