xml.parser
Class XmlTag
java.lang.Object
sidekick.Asset
xml.parser.XmlTag
- All Implemented Interfaces:
- sidekick.IAsset
- Direct Known Subclasses:
- RenamedXmlTag
public class XmlTag
- extends sidekick.Asset
| Fields inherited from class sidekick.Asset |
end, name, start |
|
Constructor Summary |
XmlTag(java.lang.String name,
java.lang.String namespace,
javax.swing.text.Position start,
org.xml.sax.Attributes attributes)
|
| Methods inherited from class sidekick.Asset |
getEnd, getName, getStart, setEnd, setName, setStart |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
attributes
public org.xml.sax.Attributes attributes
attributeString
public java.lang.String attributeString
idAttributeString
public java.lang.String idAttributeString
empty
public boolean empty
namespace
public java.lang.String namespace
namespaceBindings
public NamespaceBindings namespaceBindings
- namespace -> prefix
XmlTag
public XmlTag(java.lang.String name,
java.lang.String namespace,
javax.swing.text.Position start,
org.xml.sax.Attributes attributes)
getIcon
public javax.swing.Icon getIcon()
getLongString
public java.lang.String getLongString()
getShortString
public java.lang.String getShortString()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getLocalName
public java.lang.String getLocalName()
getPrefix
public java.lang.String getPrefix()
canAddCharacters
public boolean canAddCharacters()
- Returns:
true if this tag should accumulate the characters from
the body of a tag. This default implementation returns false.
Subclasses may override to return true.
addCharacters
public void addCharacters(char[] chars)
- If
canAddCharacters returns true, characters from the body of
the tag will be accumulated.
getCharacters
public java.lang.String getCharacters()
- Returns:
- Any characters accumulated from the body of the tag. Will return
an empty String if
canAddCharacters returns false.