Package org.gjt.xpp.impl.tag
Class Tag
java.lang.Object
org.gjt.xpp.impl.tag.Tag
- All Implemented Interfaces:
XmlTag
Encapsulate XML ETag
- Author:
- Aleksander Slominski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get start tag localName if namespaces enabled or just qName (see below) if namespaces diabled.Get endtag tag uri (meaningful only if namespaces enabled)Returns the prefix of the current element or null if elemet has no prefix.Return end tag name as it is in document (qName).int
hashCode()
void
this constructor is modeled after SAX2 startTagprotected void
printFields
(StringBuffer buf) Print into StringBuffer element namevoid
resetTag()
Clear all Tag state to default values.
-
Constructor Details
-
Tag
protected Tag()
-
-
Method Details
-
resetTag
public void resetTag()Description copied from interface:XmlTag
Clear all Tag state to default values. -
getNamespaceUri
Get endtag tag uri (meaningful only if namespaces enabled)- Specified by:
getNamespaceUri
in interfaceXmlTag
-
getLocalName
Get start tag localName if namespaces enabled or just qName (see below) if namespaces diabled.- Specified by:
getLocalName
in interfaceXmlTag
-
getPrefix
Description copied from interface:XmlTag
Returns the prefix of the current element or null if elemet has no prefix. -
getRawName
Return end tag name as it is in document (qName).- Specified by:
getRawName
in interfaceXmlTag
-
modifyTag
public void modifyTag(String namespaceURI, String localName, String rawName) throws XmlPullParserException this constructor is modeled after SAX2 startTag- Specified by:
modifyTag
in interfaceXmlTag
- Parameters:
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- Throws:
XmlPullParserException
-
printFields
Print into StringBuffer element name -
hashCode
public int hashCode() -
equals
-