Methods Summary |
---|
public void | addEventListener(java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture)
mEventTarget.addEventListener(type, listener, useCapture);
|
public org.w3c.dom.Node | appendChild(org.w3c.dom.Node newChild)
((NodeImpl)newChild).setParentNode(this);
mChildNodes.remove(newChild);
mChildNodes.add(newChild);
return newChild;
|
public org.w3c.dom.Node | cloneNode(boolean deep)
// TODO Auto-generated method stub
return null;
|
public boolean | dispatchEvent(org.w3c.dom.events.Event evt)
return mEventTarget.dispatchEvent(evt);
|
public org.w3c.dom.NamedNodeMap | getAttributes()
// Default. Override in Element.
return null;
|
public org.w3c.dom.NodeList | getChildNodes()
return new NodeListImpl(this, null, false);
|
public org.w3c.dom.Node | getFirstChild()
Node firstChild = null;
try {
firstChild = mChildNodes.firstElement();
}
catch (NoSuchElementException e) {
// Ignore and return null
}
return firstChild;
|
public org.w3c.dom.Node | getLastChild()
Node lastChild = null;
try {
lastChild = mChildNodes.lastElement();
}
catch (NoSuchElementException e) {
// Ignore and return null
}
return lastChild;
|
public java.lang.String | getLocalName()
// TODO Auto-generated method stub
return null;
|
public java.lang.String | getNamespaceURI()
// TODO Auto-generated method stub
return null;
|
public org.w3c.dom.Node | getNextSibling()
if ((mParentNode != null) && (this != mParentNode.getLastChild())) {
Vector<Node> siblings = ((NodeImpl)mParentNode).mChildNodes;
int indexOfThis = siblings.indexOf(this);
return siblings.elementAt(indexOfThis + 1);
}
return null;
|
public abstract java.lang.String | getNodeName()
|
public abstract short | getNodeType()
|
public java.lang.String | getNodeValue()
// Default behaviour. Override if required.
return null;
|
public org.w3c.dom.Document | getOwnerDocument()
return mOwnerDocument;
|
public org.w3c.dom.Node | getParentNode()
return mParentNode;
|
public java.lang.String | getPrefix()
// TODO Auto-generated method stub
return null;
|
public org.w3c.dom.Node | getPreviousSibling()
if ((mParentNode != null) && (this != mParentNode.getFirstChild())) {
Vector<Node> siblings = ((NodeImpl)mParentNode).mChildNodes;
int indexOfThis = siblings.indexOf(this);
return siblings.elementAt(indexOfThis - 1);
}
return null;
|
public boolean | hasAttributes()
// Default. Override in Element.
return false;
|
public boolean | hasChildNodes()
return !(mChildNodes.isEmpty());
|
public org.w3c.dom.Node | insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)
// TODO Auto-generated method stub
return null;
|
public boolean | isSupported(java.lang.String feature, java.lang.String version)
// TODO Auto-generated method stub
return false;
|
public void | normalize()
// TODO Auto-generated method stub
|
public org.w3c.dom.Node | removeChild(org.w3c.dom.Node oldChild)
if (mChildNodes.contains(oldChild)) {
mChildNodes.remove(oldChild);
((NodeImpl)oldChild).setParentNode(null);
} else {
throw new DOMException(DOMException.NOT_FOUND_ERR, "Child does not exist");
}
return null;
|
public void | removeEventListener(java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture)
mEventTarget.removeEventListener(type, listener, useCapture);
|
public org.w3c.dom.Node | replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild)
if (mChildNodes.contains(oldChild)) {
// Try to remove the new child if available
try {
mChildNodes.remove(newChild);
} catch (DOMException e) {
// Ignore exception
}
mChildNodes.setElementAt(newChild, mChildNodes.indexOf(oldChild));
((NodeImpl)newChild).setParentNode(this);
((NodeImpl)oldChild).setParentNode(null);
} else {
throw new DOMException(DOMException.NOT_FOUND_ERR, "Old child does not exist");
}
return oldChild;
|
public void | setNodeValue(java.lang.String nodeValue)
// Default behaviour. Override if required.
|
private void | setParentNode(org.w3c.dom.Node parentNode)
mParentNode = parentNode;
|
public void | setPrefix(java.lang.String prefix)
// TODO Auto-generated method stub
|