xml.parser.javacc
Class XmlDocument.Tag
java.lang.Object
xml.parser.javacc.XmlDocument.XmlElement
xml.parser.javacc.XmlDocument.Tag
- All Implemented Interfaces:
- sidekick.util.SideKickElement
- Enclosing class:
- XmlDocument
public static class XmlDocument.Tag
- extends XmlDocument.XmlElement
XML start tag. Stores the tag name and a list of tag attributes.
| Methods inherited from class xml.parser.javacc.XmlDocument.XmlElement |
equals, getEndLocation, getEndPosition, getStartLocation, getStartPosition, setEndLocation, setEndLocation, setEndPosition, setStartLocation, setStartLocation, setStartPosition |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
tagStart
public java.lang.String tagStart
tagName
public java.lang.String tagName
attributeList
public XmlDocument.AttributeList attributeList
tagEnd
public java.lang.String tagEnd
emptyTag
public boolean emptyTag
namespace
public java.lang.String namespace
namespaceBindings
public NamespaceBindings namespaceBindings
- namespace -> prefix
XmlDocument.Tag
public XmlDocument.Tag(java.lang.String name,
XmlDocument.AttributeList a)
XmlDocument.Tag
public XmlDocument.Tag(java.lang.String tagStart,
java.lang.String name,
XmlDocument.AttributeList a,
java.lang.String tagEnd)
sortAttributes
public void sortAttributes()
setEmpty
public void setEmpty(boolean b)
accept
public void accept(XmlVisitor v)
- Specified by:
accept in class XmlDocument.XmlElement
hasAttribute
public boolean hasAttribute(java.lang.String name)
hasAttributeValue
public boolean hasAttributeValue(java.lang.String name)
getAttributeValue
public java.lang.String getAttributeValue(java.lang.String name)
getLength
public int getLength()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
toLongString
public java.lang.String toLongString()
- Overrides:
toLongString in class XmlDocument.XmlElement