org.gjt.xpp.impl.tag
Class Tag

java.lang.Object
  extended by org.gjt.xpp.impl.tag.Tag
All Implemented Interfaces:
XmlTag
Direct Known Subclasses:
EndTag, StartTag

public class Tag
extends java.lang.Object
implements XmlTag

Encapsulate XML ETag

Author:
Aleksander Slominski

Constructor Summary
protected Tag()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getLocalName()
          Get start tag localName if namespaces enabled or just qName (see below) if namespaces diabled.
 java.lang.String getNamespaceUri()
          Get endtag tag uri (meaningful only if namespaces enabled)
 java.lang.String getPrefix()
          Returns the prefix of the current element or null if elemet has no prefix.
 java.lang.String getRawName()
          Return end tag name as it is in document (qName).
 int hashCode()
           
 void modifyTag(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName)
          this constructor is modeled after SAX2 startTag
protected  void printFields(java.lang.StringBuffer buf)
          Print into StringBuffer element name
 void resetTag()
          Clear all Tag state to default values.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tag

protected Tag()
Method Detail

resetTag

public void resetTag()
Description copied from interface: XmlTag
Clear all Tag state to default values.

Specified by:
resetTag in interface XmlTag

getNamespaceUri

public java.lang.String getNamespaceUri()
Get endtag tag uri (meaningful only if namespaces enabled)

Specified by:
getNamespaceUri in interface XmlTag

getLocalName

public java.lang.String getLocalName()
Get start tag localName if namespaces enabled or just qName (see below) if namespaces diabled.

Specified by:
getLocalName in interface XmlTag

getPrefix

public java.lang.String getPrefix()
Description copied from interface: XmlTag
Returns the prefix of the current element or null if elemet has no prefix.

Specified by:
getPrefix in interface XmlTag

getRawName

public java.lang.String getRawName()
Return end tag name as it is in document (qName).

Specified by:
getRawName in interface XmlTag

modifyTag

public void modifyTag(java.lang.String namespaceURI,
                      java.lang.String localName,
                      java.lang.String rawName)
               throws XmlPullParserException
this constructor is modeled after SAX2 startTag

Specified by:
modifyTag in interface XmlTag
Parameters:
namespaceURI - maybe null then default "" namespace is used
localName - may be null then rawName is used
rawName - actual attribute name MUST be not null if it is null exception MUST be thrown
Throws:
XmlPullParserException

printFields

protected void printFields(java.lang.StringBuffer buf)
Print into StringBuffer element name


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


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