Methods Summary |
---|
public void | addAttributes(java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
if (mAttributes == null) {
mAttributes = new MockNamedNodeMap();
}
MockXmlNode node = mAttributes.addAttribute(namespaceURI, localName, value);
node.mParent = this;
|
public org.w3c.dom.Node | appendChild(org.w3c.dom.Node newChild)
mNodeList.getArrayList().add((MockXmlNode) newChild);
return newChild;
|
public org.w3c.dom.Node | cloneNode(boolean deep)
throw new NotImplementedException();
|
public short | compareDocumentPosition(org.w3c.dom.Node other)
throw new NotImplementedException();
|
private void | fixNavigation()
MockXmlNode prev = null;
for (MockXmlNode n : mNodeList.getArrayList()) {
n.mParent = this;
n.mPreviousSibling = prev;
if (prev != null) {
prev.mNextSibling = n;
}
n.fixNavigation();
prev = n;
}
|
public org.w3c.dom.NamedNodeMap | getAttributes()
return mAttributes;
|
public java.lang.String | getBaseURI()
throw new NotImplementedException();
|
public org.w3c.dom.NodeList | getChildNodes()
return mNodeList;
|
public java.lang.Object | getFeature(java.lang.String feature, java.lang.String version)
throw new NotImplementedException();
|
public org.w3c.dom.Node | getFirstChild()
if (mNodeList.getLength() > 0) {
return mNodeList.item(0);
}
return null;
|
public org.w3c.dom.Node | getLastChild()
if (mNodeList.getLength() > 0) {
return mNodeList.item(mNodeList.getLength() - 1);
}
return null;
|
public java.lang.String | getLocalName()
return mLocalName;
|
public java.lang.String | getNamespaceURI()
return mNamespace;
|
public org.w3c.dom.Node | getNextSibling()
return mNextSibling;
|
public java.lang.String | getNodeName()
return mLocalName;
|
public short | getNodeType()
return mNodeType;
|
public java.lang.String | getNodeValue()
return mAttrValue;
|
public org.w3c.dom.Document | getOwnerDocument()
throw new NotImplementedException();
|
public org.w3c.dom.Node | getParentNode()
return mParent;
|
public java.lang.String | getPrefix()
return getPrefix(getNamespaceURI());
|
public java.lang.String | getPrefix(java.lang.String namespace)
if (mNsMap != null) {
return mNsMap.get(namespace);
}
return mParent.getPrefix(namespace);
|
public org.w3c.dom.Node | getPreviousSibling()
return mPreviousSibling;
|
public java.lang.String | getTextContent()
throw new NotImplementedException();
|
public java.lang.Object | getUserData(java.lang.String key)
throw new NotImplementedException();
|
public boolean | hasAttributes()
// TODO Auto-generated method stub
throw new NotImplementedException();
//return false;
|
public boolean | hasChildNodes()
return mNodeList.getLength() > 0;
|
public org.w3c.dom.Node | insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)
throw new NotImplementedException();
|
public boolean | isDefaultNamespace(java.lang.String namespaceURI)
throw new NotImplementedException();
|
public boolean | isEqualNode(org.w3c.dom.Node arg)
throw new NotImplementedException();
|
public boolean | isSameNode(org.w3c.dom.Node other)
return this == other;
|
public boolean | isSupported(java.lang.String feature, java.lang.String version)
throw new NotImplementedException();
|
public java.lang.String | lookupNamespaceURI(java.lang.String prefix)
throw new NotImplementedException();
|
public java.lang.String | lookupPrefix(java.lang.String namespaceURI)
throw new NotImplementedException();
|
public void | normalize()
throw new NotImplementedException();
|
public org.w3c.dom.Node | removeChild(org.w3c.dom.Node oldChild)
throw new NotImplementedException();
|
public org.w3c.dom.Node | replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild)
throw new NotImplementedException();
|
public void | setNodeValue(java.lang.String nodeValue)
throw new NotImplementedException();
|
public void | setPrefix(java.lang.String prefix)
throw new NotImplementedException();
|
public void | setPrefix(java.lang.String namespace, java.lang.String prefix)
if (mNsMap == null) {
mNsMap = new HashMap<String, String>();
}
mNsMap.put(namespace, prefix);
|
public void | setTextContent(java.lang.String textContent)
throw new NotImplementedException();
|
public java.lang.Object | setUserData(java.lang.String key, java.lang.Object data, org.w3c.dom.UserDataHandler handler)
throw new NotImplementedException();
|