org.gjt.xpp.impl.tag
Class StartTag
public
class
StartTag
extends Tag
implements XmlStartTag
Method Summary |
void | addAttribute(String namespaceUri, String localName, String rawName, String value) parameters modeled after SAX2 attribute approach |
void | addAttribute(String namespaceUri, String localName, String rawName, String value, boolean isNamespaceDeclaration) |
void | ensureAttributesCapacity(int minCapacity)
Make sure that there is enough space to keep size attributes. |
boolean | equals(Object o) |
int | getAttributeCount()
Return number of attributes. |
String | getAttributeLocalName(int index)
Get localName of attribute number index (starts from 0)
if namespaces enabled or just attribute name if namespaces disabled. |
String | getAttributeNamespaceUri(int index)
Get uri of attribute number index (starts from 0).
(meaningful only if namespaces enabled) |
String | getAttributePrefix(int index) |
String | getAttributeRawName(int index) Return qName of atrribute number index (starts from 0) |
String | getAttributeValue(int index) Return value of attribute number index. |
String | getAttributeValueFromName(String uri, String localName)
Return value of attribute named (uri, localName) or null
of no such attribute found.
(meaningful only if namespaces enabled) |
String | getAttributeValueFromRawName(String qName)
Return value of attribute named qName or null
of no such attribute found. |
boolean | isAttributeNamespaceDeclaration(int index) |
protected void | printFields(StringBuffer buf) |
boolean | removeAttributeByName(String uri, String localName) |
boolean | removeAttributeByRawName(String rawName) |
void | removeAttributes() remove all atribute |
void | resetStartTag()
Reinitialize start tag content to none |
String | toString()
Return string representation of start tag including name
and list of attributes. |
public StartTag()
public void addAttribute(String namespaceUri, String localName, String rawName, String value)
parameters modeled after SAX2 attribute approach
public void addAttribute(String namespaceUri, String localName, String rawName, String value, boolean isNamespaceDeclaration)
public void ensureAttributesCapacity(int minCapacity)
Make sure that there is enough space to keep size attributes.
public boolean equals(Object o)
public int getAttributeCount()
Return number of attributes.
public String getAttributeLocalName(int index)
Get localName of attribute number index (starts from 0)
if namespaces enabled or just attribute name if namespaces disabled.
public String getAttributeNamespaceUri(int index)
Get uri of attribute number index (starts from 0).
(meaningful only if namespaces enabled)
public String getAttributePrefix(int index)
public String getAttributeRawName(int index)
Return qName of atrribute number index (starts from 0)
public String getAttributeValue(int index)
Return value of attribute number index.
public String getAttributeValueFromName(String uri, String localName)
Return value of attribute named (uri, localName) or null
of no such attribute found.
(meaningful only if namespaces enabled)
public String getAttributeValueFromRawName(String qName)
Return value of attribute named qName or null
of no such attribute found.
public boolean isAttributeNamespaceDeclaration(int index)
protected void printFields(StringBuffer buf)
public boolean removeAttributeByName(String uri, String localName)
public boolean removeAttributeByRawName(String rawName)
public void removeAttributes()
remove all atribute
public void resetStartTag()
Reinitialize start tag content to none
public String toString()
Return string representation of start tag including name
and list of attributes.
Copyright (c) 2003 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.
Note this package is deprecated by
XPP3 that implements
XmlPull API