Methods Summary |
---|
public org.w3c.dom.Node | appendChild(org.w3c.dom.Node node)
throw operationNotSupported();
|
protected java.util.List | buildChildAdapters()subclasses override to produce their children
return new ArrayList<Node>();
|
public org.w3c.dom.Node | cloneNode(boolean b)
log.trace("cloneNode");
throw operationNotSupported();
|
public short | compareDocumentPosition(org.w3c.dom.Node node)
throw operationNotSupported();
|
public AdapterFactory | getAdapterFactory()
return adapterFactory;
|
public org.w3c.dom.NamedNodeMap | getAttributes()
return EMPTY_NAMEDNODEMAP;
|
public java.lang.String | getBaseURI()
throw operationNotSupported();
|
protected java.util.List | getChildAdapters()Lazily initialize child childAdapters
if (childAdapters == null) {
childAdapters = buildChildAdapters();
}
return childAdapters;
|
public org.w3c.dom.Node | getChildAfter(org.w3c.dom.Node child)
log.trace("getChildafter");
return getChildBeforeOrAfter(child, false/*after*/);
|
public org.w3c.dom.Node | getChildBefore(org.w3c.dom.Node child)
log.trace("getchildbefore");
return getChildBeforeOrAfter(child, true/*after*/);
|
public org.w3c.dom.Node | getChildBeforeOrAfter(org.w3c.dom.Node child, boolean before)
log.debug("getChildBeforeOrAfter: ");
List adapters = getChildAdapters();
log.debug("childAdapters = " + adapters);
log.debug("child = " + child);
int index = adapters.indexOf(child);
if (index < 0)
throw new StrutsException(child + " is no child of " + this);
int siblingIndex = before ? index - 1 : index + 1;
return ((0 < siblingIndex) && (siblingIndex < adapters.size())) ?
((Node) adapters.get(siblingIndex)) : null;
|
public org.w3c.dom.NodeList | getChildNodes()
NodeList nl = new SimpleNodeList(getChildAdapters());
if (log.isDebugEnabled())
log.debug("getChildNodes for tag: "
+ getNodeName() + " num children: " + nl.getLength());
return nl;
|
public org.w3c.dom.NodeList | getElementsByTagName(java.lang.String tagName)
if (tagName.equals("*")) {
return getChildNodes();
} else {
LinkedList<Node> filteredChildren = new LinkedList<Node>();
for (Node adapterNode : getChildAdapters()) {
if (adapterNode.getNodeName().equals(tagName)) {
filteredChildren.add(adapterNode);
}
}
return new SimpleNodeList(filteredChildren);
}
|
public org.w3c.dom.NodeList | getElementsByTagNameNS(java.lang.String string, java.lang.String string1)
// TODO:
return null;
|
public java.lang.Object | getFeature(java.lang.String string, java.lang.String string1)
throw operationNotSupported();
|
public org.w3c.dom.Node | getFirstChild()
return (getChildNodes().getLength() > 0) ? getChildNodes().item(0) : null;
|
public org.w3c.dom.Node | getLastChild()
return (getChildNodes().getLength() > 0) ? getChildNodes().item(getChildNodes().getLength() - 1) : null;
|
public java.lang.String | getLocalName()
return null;
|
public java.lang.String | getNamespaceURI()
return null;
|
public org.w3c.dom.Node | getNextSibling()
Node next = getParent().getChildAfter(this);
if (log.isTraceEnabled()) {
log.trace("getNextSibling on " + getNodeName() + ": "
+ ((next == null) ? "null" : next.getNodeName()));
}
return getParent().getChildAfter(this);
|
public java.lang.String | getNodeName()
throw operationNotSupported();
|
public short | getNodeType()
throw operationNotSupported();
|
public java.lang.String | getNodeValue()
throw operationNotSupported();
|
public org.w3c.dom.Document | getOwnerDocument()
return null;
|
public AdapterNode | getParent()
return parent;
|
public org.w3c.dom.Node | getParentNode()
log.trace("getParentNode");
return getParent();
|
public java.lang.String | getPrefix()
return null;
|
public org.w3c.dom.Node | getPreviousSibling()
return getParent().getChildBefore(this);
|
public java.lang.String | getPropertyName()
return propertyName;
|
public java.lang.Object | getPropertyValue()
return propertyValue;
|
public java.lang.String | getTextContent()
throw operationNotSupported();
|
public java.lang.Object | getUserData(java.lang.String string)
throw operationNotSupported();
|
public boolean | hasAttributes()
return false;
|
public boolean | hasChildNodes()
return false;
|
public org.w3c.dom.Node | insertBefore(org.w3c.dom.Node node, org.w3c.dom.Node node1)
throw operationNotSupported();
|
public boolean | isDefaultNamespace(java.lang.String string)
throw operationNotSupported();
|
public boolean | isEqualNode(org.w3c.dom.Node node)
throw operationNotSupported();
|
public boolean | isSameNode(org.w3c.dom.Node node)
throw operationNotSupported();
|
public boolean | isSupported(java.lang.String string, java.lang.String string1)
throw operationNotSupported();
|
public java.lang.String | lookupNamespaceURI(java.lang.String string)
throw operationNotSupported();
|
public java.lang.String | lookupPrefix(java.lang.String string)
throw operationNotSupported();
|
public void | normalize()
log.trace("normalize");
throw operationNotSupported();
|
protected org.apache.struts2.StrutsException | operationNotSupported()
return new StrutsException("Operation not supported.");
|
public org.w3c.dom.Node | removeChild(org.w3c.dom.Node node)
throw operationNotSupported();
|
public org.w3c.dom.Node | replaceChild(org.w3c.dom.Node node, org.w3c.dom.Node node1)
throw operationNotSupported();
|
public void | setAdapterFactory(AdapterFactory adapterFactory)
this.adapterFactory = adapterFactory;
|
protected void | setContext(AdapterFactory adapterFactory, AdapterNode parent, java.lang.String propertyName, java.lang.Object value)
setAdapterFactory(adapterFactory);
setParent(parent);
setPropertyName(propertyName);
setPropertyValue(value);
|
public void | setNodeValue(java.lang.String string)
throw operationNotSupported();
|
public void | setParent(AdapterNode parent)
this.parent = parent;
|
public void | setPrefix(java.lang.String string)
throw operationNotSupported();
|
public void | setPropertyName(java.lang.String name)
this.propertyName = name;
|
public void | setPropertyValue(java.lang.Object prop)
this.propertyValue = prop;
|
public void | setTextContent(java.lang.String string)
throw operationNotSupported();
|
public java.lang.Object | setUserData(java.lang.String string, java.lang.Object object, org.w3c.dom.UserDataHandler userDataHandler)
throw operationNotSupported();
|
public java.lang.String | toString()
return getClass() + ": " + getNodeName() + " parent=" + getParentNode();
|