Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.gjt.xpp.impl.tag.Tag
org.gjt.xpp.impl.tag.StartTag
org.gjt.xpp.impl.node.Node
Field Summary | |
protected static Enumeration | |
protected Vector | |
protected int | |
protected String[] | |
protected int | |
protected String[] | |
protected String | |
protected Object | |
protected XmlNode | |
protected Hashtable |
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
void |
|
Enumeration |
|
void |
|
void |
|
boolean |
|
Object |
|
int |
|
int | |
String |
|
XmlNode | |
String |
|
String |
|
void |
|
String |
|
XmlNode |
|
XmlNode |
|
String |
|
protected void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void |
|
void |
|
void |
|
void |
|
String |
|
Methods inherited from class org.gjt.xpp.impl.tag.Tag | |
equals , getLocalName , getNamespaceUri , getPrefix , getRawName , hashCode , modifyTag , printFields , resetTag |
protected static final Enumeration EMPTY_ENUMERATION
protected Vector children
protected int childrenCount
protected String[] declaredNs
protected int declaredNsEnd
protected String[] declaredPrefixes
protected String defaultNamespaceUri
protected Object oneChild
protected Hashtable prefix2Ns
public void addDeclaredNamespaces(String[] prefix, int off, int len, String[] namespaceUri)
NOTE: node SHOULD NOT keep references to passed arrays!
- Specified by:
- addDeclaredNamespaces in interface XmlNode
public void addNamespaceDeclaration(String prefix, String namespaceUri) throws XmlPullParserException
- Specified by:
- addNamespaceDeclaration in interface XmlNode
public void appendChild(Object child) throws XmlPullParserException
- Specified by:
- appendChild in interface XmlNode
public void ensureChildrenCapacity(int minCapacity) throws XmlPullParserException
- Specified by:
- ensureChildrenCapacity in interface XmlNode
public void ensureDeclaredNamespacesCapacity(int minCapacity)
- Specified by:
- ensureDeclaredNamespacesCapacity in interface XmlNode
public int getChildrenCount()
it may need to reconsruct whole subtree to get count ...
- Specified by:
- getChildrenCount in interface XmlNode
public int getDeclaredNamespaceLength()
- Specified by:
- getDeclaredNamespaceLength in interface XmlNode
public String getDefaultNamespaceUri()
Namesapce URI associated with default namesapce prefix (xmlns='....')
- Specified by:
- getDefaultNamespaceUri in interface XmlNode
public String getQNameLocal(String qName)
Return local part of qname. For example for 'xsi:type' it returns 'type'.
- Specified by:
- getQNameLocal in interface XmlNode
public String getQNameUri(String qName)
Return uri part of qname. The return value is dependent on declared namespaces in this node and possible when looking for value in parent node. For example for 'xsi:type' if xsi namespace prefix was declared to 'http://foo' it will return 'http://foo'.
- Specified by:
- getQNameUri in interface XmlNode
public void insertChildAt(int pos, Object child) throws XmlPullParserException
- Specified by:
- insertChildAt in interface XmlNode
public String namespace2Prefix(String namespaceUri) throws XmlPullParserException
return prefix for namesapce searching node tree upward.
- Specified by:
- namespace2Prefix in interface XmlNode
public XmlNode newNode() throws XmlPullParserException
context sensitive factory method to create the same type of node
public String prefix2Namespace(String prefix) throws XmlPullParserException
return namespace for prefix searching node tree upward.
- Specified by:
- prefix2Namespace in interface XmlNode
protected void printFields(StringBuffer buf)
Print into StringBuffer element name
- Overrides:
- printFields in interface StartTag
public void readDeclaredNamespaceUris(String[] uris, int off, int len)
- Specified by:
- readDeclaredNamespaceUris in interface XmlNode
public void readDeclaredPrefixes(String[] prefixes, int off, int len)
- Specified by:
- readDeclaredPrefixes in interface XmlNode
public void removeChildAt(int pos) throws XmlPullParserException
- Specified by:
- removeChildAt in interface XmlNode
public void removeChildren() throws XmlPullParserException
Removes all children - every child that was implementing XmlNode will have set parent to null.
- Specified by:
- removeChildren in interface XmlNode
public void removeDeclaredNamespaces()
- Specified by:
- removeDeclaredNamespaces in interface XmlNode
public void replaceChildAt(int pos, Object child) throws XmlPullParserException
- Specified by:
- replaceChildAt in interface XmlNode
public void resetNode()
Clear all Tag state to default values.
public void setDefaultNamespaceUri(String defaultNamespaceUri)
Set default namesapce URI (xmlns='....')
- Specified by:
- setDefaultNamespaceUri in interface XmlNode
public void setParentNode(XmlNode parent)
- Specified by:
- setParentNode in interface XmlNode