org.gjt.xpp
Interface XmlTag
- XmlEndTag, XmlNode, XmlPullNode, XmlStartTag
Base interface that encapsulates common functionality for
XML elements: both start tag and end tag
(an empty element is equivalent to start tag followed by
end tag so for simplicity ti is not modeled as a separate class).
String | getLocalName() - Returns the local name of the current element
|
String | getNamespaceUri() - Returns the namespace URI of the current element
Returns null if not applicable
|
String | getPrefix() - Returns the prefix of the current element
or null if elemet has no prefix.
|
String | getRawName() - Returns the raw name (prefix + ':' + localName) of the current element
|
void | modifyTag(String namespaceURI, String localName, String rawName) - Modify tag to have namespace URI, localName and rawName.
|
void | resetTag() - Clear all Tag state to default values.
|
getLocalName
public String getLocalName()
Returns the local name of the current element
getNamespaceUri
public String getNamespaceUri()
Returns the namespace URI of the current element
Returns null if not applicable
getPrefix
public String getPrefix()
Returns the prefix of the current element
or null if elemet has no prefix.
getRawName
public String getRawName()
Returns the raw name (prefix + ':' + localName) of the current element
modifyTag
public void modifyTag(String namespaceURI,
String localName,
String rawName)
throws XmlPullParserException
Modify tag to have namespace URI, localName and rawName.
NOTE: setting modeled after SAX2 startTag
namespaceURI
- maybe null then default "" namespace is usedlocalName
- may be null then rawName is usedrawName
- actual attribute name MUST be not null
if it is null exception MUST be thrown
resetTag
public void resetTag()
Clear all Tag state to default values.
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