Class Tag

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

public class Tag extends Object implements XmlTag
Encapsulate XML ETag
Author:
Aleksander Slominski
  • Constructor Details

    • Tag

      protected Tag()
  • Method Details

    • resetTag

      public void resetTag()
      Description copied from interface: XmlTag
      Clear all Tag state to default values.
      Specified by:
      resetTag in interface XmlTag
    • getNamespaceUri

      public String getNamespaceUri()
      Get endtag tag uri (meaningful only if namespaces enabled)
      Specified by:
      getNamespaceUri in interface XmlTag
    • getLocalName

      public 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 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 String getRawName()
      Return end tag name as it is in document (qName).
      Specified by:
      getRawName in interface XmlTag
    • modifyTag

      public void modifyTag(String namespaceURI, String localName, 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(StringBuffer buf)
      Print into StringBuffer element name
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object