📄 proxyelementadapter.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: ProxyElementAdapter.java
package org.apache.struts2.views.xslt;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.w3c.dom.*;
// Referenced classes of package org.apache.struts2.views.xslt:
// ProxyNodeAdapter, AdapterFactory, AdapterNode
public class ProxyElementAdapter extends ProxyNodeAdapter
implements Element
{
private Log log;
public ProxyElementAdapter(AdapterFactory factory, AdapterNode parent, Element value)
{
super(factory, parent, value);
log = LogFactory.getLog(getClass());
}
protected Element element()
{
return (Element)getPropertyValue();
}
protected List buildChildAdapters()
{
List adapters = new ArrayList();
NodeList children = node().getChildNodes();
for (int i = 0; i < children.getLength(); i++)
{
Node child = children.item(i);
Node adapter = wrap(child);
if (adapter != null)
{
log.debug((new StringBuilder()).append("wrapped child node: ").append(child.getNodeName()).toString());
adapters.add(adapter);
}
}
return adapters;
}
public String getTagName()
{
return element().getTagName();
}
public boolean hasAttribute(String name)
{
return element().hasAttribute(name);
}
public String getAttribute(String name)
{
return element().getAttribute(name);
}
public boolean hasAttributeNS(String namespaceURI, String localName)
{
return element().hasAttributeNS(namespaceURI, localName);
}
public Attr getAttributeNode(String name)
{
log.debug("wrapping attribute");
return (Attr)wrap(element().getAttributeNode(name));
}
public NodeList getElementsByTagName(String name)
{
return super.getElementsByTagName(name);
}
public String getAttributeNS(String namespaceURI, String localName)
{
return element().getAttributeNS(namespaceURI, localName);
}
public Attr getAttributeNodeNS(String namespaceURI, String localName)
{
return (Attr)wrap(element().getAttributeNodeNS(namespaceURI, localName));
}
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
{
return super.getElementsByTagNameNS(namespaceURI, localName);
}
public void removeAttribute(String name)
throws DOMException
{
throw new UnsupportedOperationException();
}
public void removeAttributeNS(String namespaceURI, String localName)
throws DOMException
{
throw new UnsupportedOperationException();
}
public void setAttribute(String name, String value)
throws DOMException
{
throw new UnsupportedOperationException();
}
public Attr removeAttributeNode(Attr oldAttr)
throws DOMException
{
throw new UnsupportedOperationException();
}
public Attr setAttributeNode(Attr newAttr)
throws DOMException
{
throw new UnsupportedOperationException();
}
public Attr setAttributeNodeNS(Attr newAttr)
throws DOMException
{
throw new UnsupportedOperationException();
}
public void setAttributeNS(String namespaceURI, String qualifiedName, String value)
throws DOMException
{
throw new UnsupportedOperationException();
}
public TypeInfo getSchemaTypeInfo()
{
throw operationNotSupported();
}
public void setIdAttribute(String string, boolean b)
throws DOMException
{
throw operationNotSupported();
}
public void setIdAttributeNS(String string, String string1, boolean b)
throws DOMException
{
throw operationNotSupported();
}
public void setIdAttributeNode(Attr attr, boolean b)
throws DOMException
{
throw operationNotSupported();
}
public String toString()
{
return (new StringBuilder()).append("ProxyElement for: ").append(element()).toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -