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 TypeMethodDescriptionbooleanGet 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).inthashCode()voidthis constructor is modeled after SAX2 startTagprotected voidprintFields(StringBuffer buf) Print into StringBuffer element namevoidresetTag()Clear all Tag state to default values.
-
Constructor Details
-
Tag
protected Tag()
-
-
Method Details
-
resetTag
public void resetTag()Description copied from interface:XmlTagClear all Tag state to default values. -
getNamespaceUri
Get endtag tag uri (meaningful only if namespaces enabled)- Specified by:
getNamespaceUriin interfaceXmlTag
-
getLocalName
Get start tag localName if namespaces enabled or just qName (see below) if namespaces diabled.- Specified by:
getLocalNamein interfaceXmlTag
-
getPrefix
Description copied from interface:XmlTagReturns 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:
getRawNamein interfaceXmlTag
-
modifyTag
public void modifyTag(String namespaceURI, String localName, String rawName) throws XmlPullParserException this constructor is modeled after SAX2 startTag- Specified by:
modifyTagin 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
-