org.apache.struts2.views.xslt
类 SimpleAdapterDocument

java.lang.Object
  继承者 org.apache.struts2.views.xslt.AbstractAdapterNode
      继承者 org.apache.struts2.views.xslt.SimpleAdapterDocument
所有已实现的接口:
AdapterNode, Document, Node

public class SimpleAdapterDocument
extends AbstractAdapterNode
implements Document

SimpleAdapterDocument adapted a Java object and presents it as a Document. This class represents the Document container and uses the AdapterFactory to produce a child adapter for the wrapped object. The adapter produced must be of an Element type or an exception is thrown. Note: in theory we could base this on AbstractAdapterElement and then allow the wrapped object to be a more general Node type. We would just use ourselves as the root element. However I don't think this is an issue as people expect Documents to wrap Elements.


字段摘要
 
从接口 org.w3c.dom.Node 继承的字段
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
构造方法摘要
SimpleAdapterDocument(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, Object value)
           
 
方法摘要
 Node adoptNode(Node node)
           
 Attr createAttribute(String string)
           
 Attr createAttributeNS(String string, String string1)
           
 CDATASection createCDATASection(String string)
           
 Comment createComment(String string)
           
 DocumentFragment createDocumentFragment()
           
 Element createElement(String string)
           
 Element createElementNS(String string, String string1)
           
 EntityReference createEntityReference(String string)
           
 ProcessingInstruction createProcessingInstruction(String string, String string1)
           
 Text createTextNode(String string)
           
 Node getChildAfter(Node child)
          The child node after the specified sibling
 Node getChildBefore(Node child)
          The child node before the specified sibling
 NodeList getChildNodes()
           
 DocumentType getDoctype()
           
 Element getDocumentElement()
           
 String getDocumentURI()
           
 DOMConfiguration getDomConfig()
           
 Element getElementById(String string)
           
 NodeList getElementsByTagName(String string)
           
 NodeList getElementsByTagNameNS(String string, String string1)
           
 Node getFirstChild()
           
 DOMImplementation getImplementation()
           
 String getInputEncoding()
           
 Node getLastChild()
           
 String getNodeName()
           
 short getNodeType()
           
 boolean getStrictErrorChecking()
           
 String getXmlEncoding()
           
 boolean getXmlStandalone()
           
 String getXmlVersion()
           
 boolean hasChildNodes()
           
 Node importNode(Node node, boolean b)
           
 void normalizeDocument()
           
 Node renameNode(Node node, String string, String string1)
           
 void setDocumentURI(String string)
           
 void setPropertyValue(Object prop)
          The Java object (property) that we are adapting
 void setStrictErrorChecking(boolean b)
           
 void setXmlStandalone(boolean b)
           
 void setXmlVersion(String string)
           
 
从类 org.apache.struts2.views.xslt.AbstractAdapterNode 继承的方法
appendChild, cloneNode, compareDocumentPosition, getAdapterFactory, getAttributes, getBaseURI, getChildBeforeOrAfter, getFeature, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParent, getParentNode, getPrefix, getPreviousSibling, getPropertyName, getPropertyValue, getTextContent, getUserData, hasAttributes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setAdapterFactory, setNodeValue, setParent, setPrefix, setPropertyName, setTextContent, setUserData, toString
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
从接口 org.w3c.dom.Node 继承的方法
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

构造方法详细信息

SimpleAdapterDocument

public SimpleAdapterDocument(AdapterFactory adapterFactory,
                             AdapterNode parent,
                             String propertyName,
                             Object value)
方法详细信息

setPropertyValue

public void setPropertyValue(Object prop)
从接口 AdapterNode 复制的描述
The Java object (property) that we are adapting

指定者:
接口 AdapterNode 中的 setPropertyValue
覆盖:
AbstractAdapterNode 中的 setPropertyValue

getChildNodes

public NodeList getChildNodes()
指定者:
接口 Node 中的 getChildNodes
覆盖:
AbstractAdapterNode 中的 getChildNodes

getDoctype

public DocumentType getDoctype()
指定者:
接口 Document 中的 getDoctype

getDocumentElement

public Element getDocumentElement()
指定者:
接口 Document 中的 getDocumentElement

getElementById

public Element getElementById(String string)
指定者:
接口 Document 中的 getElementById

getElementsByTagName

public NodeList getElementsByTagName(String string)
指定者:
接口 Document 中的 getElementsByTagName
覆盖:
AbstractAdapterNode 中的 getElementsByTagName

getElementsByTagNameNS

public NodeList getElementsByTagNameNS(String string,
                                       String string1)
指定者:
接口 Document 中的 getElementsByTagNameNS
覆盖:
AbstractAdapterNode 中的 getElementsByTagNameNS

getFirstChild

public Node getFirstChild()
指定者:
接口 Node 中的 getFirstChild
覆盖:
AbstractAdapterNode 中的 getFirstChild

getImplementation

public DOMImplementation getImplementation()
指定者:
接口 Document 中的 getImplementation

getLastChild

public Node getLastChild()
指定者:
接口 Node 中的 getLastChild
覆盖:
AbstractAdapterNode 中的 getLastChild

getNodeName

public String getNodeName()
指定者:
接口 Node 中的 getNodeName
覆盖:
AbstractAdapterNode 中的 getNodeName

getNodeType

public short getNodeType()
指定者:
接口 Node 中的 getNodeType
覆盖:
AbstractAdapterNode 中的 getNodeType

createAttribute

public Attr createAttribute(String string)
                     throws DOMException
指定者:
接口 Document 中的 createAttribute
抛出:
DOMException

createAttributeNS

public Attr createAttributeNS(String string,
                              String string1)
                       throws DOMException
指定者:
接口 Document 中的 createAttributeNS
抛出:
DOMException

createCDATASection

public CDATASection createCDATASection(String string)
                                throws DOMException
指定者:
接口 Document 中的 createCDATASection
抛出:
DOMException

createComment

public Comment createComment(String string)
指定者:
接口 Document 中的 createComment

createDocumentFragment

public DocumentFragment createDocumentFragment()
指定者:
接口 Document 中的 createDocumentFragment

createElement

public Element createElement(String string)
                      throws DOMException
指定者:
接口 Document 中的 createElement
抛出:
DOMException

createElementNS

public Element createElementNS(String string,
                               String string1)
                        throws DOMException
指定者:
接口 Document 中的 createElementNS
抛出:
DOMException

createEntityReference

public EntityReference createEntityReference(String string)
                                      throws DOMException
指定者:
接口 Document 中的 createEntityReference
抛出:
DOMException

createProcessingInstruction

public ProcessingInstruction createProcessingInstruction(String string,
                                                         String string1)
                                                  throws DOMException
指定者:
接口 Document 中的 createProcessingInstruction
抛出:
DOMException

createTextNode

public Text createTextNode(String string)
指定者:
接口 Document 中的 createTextNode

hasChildNodes

public boolean hasChildNodes()
指定者:
接口 Node 中的 hasChildNodes
覆盖:
AbstractAdapterNode 中的 hasChildNodes

importNode

public Node importNode(Node node,
                       boolean b)
                throws DOMException
指定者:
接口 Document 中的 importNode
抛出:
DOMException

getChildAfter

public Node getChildAfter(Node child)
从接口 AdapterNode 复制的描述
The child node after the specified sibling

指定者:
接口 AdapterNode 中的 getChildAfter
覆盖:
AbstractAdapterNode 中的 getChildAfter

getChildBefore

public Node getChildBefore(Node child)
从接口 AdapterNode 复制的描述
The child node before the specified sibling

指定者:
接口 AdapterNode 中的 getChildBefore
覆盖:
AbstractAdapterNode 中的 getChildBefore

getInputEncoding

public String getInputEncoding()
指定者:
接口 Document 中的 getInputEncoding

getXmlEncoding

public String getXmlEncoding()
指定者:
接口 Document 中的 getXmlEncoding

getXmlStandalone

public boolean getXmlStandalone()
指定者:
接口 Document 中的 getXmlStandalone

setXmlStandalone

public void setXmlStandalone(boolean b)
                      throws DOMException
指定者:
接口 Document 中的 setXmlStandalone
抛出:
DOMException

getXmlVersion

public String getXmlVersion()
指定者:
接口 Document 中的 getXmlVersion

setXmlVersion

public void setXmlVersion(String string)
                   throws DOMException
指定者:
接口 Document 中的 setXmlVersion
抛出:
DOMException

getStrictErrorChecking

public boolean getStrictErrorChecking()
指定者:
接口 Document 中的 getStrictErrorChecking

setStrictErrorChecking

public void setStrictErrorChecking(boolean b)
指定者:
接口 Document 中的 setStrictErrorChecking

getDocumentURI

public String getDocumentURI()
指定者:
接口 Document 中的 getDocumentURI

setDocumentURI

public void setDocumentURI(String string)
指定者:
接口 Document 中的 setDocumentURI

adoptNode

public Node adoptNode(Node node)
               throws DOMException
指定者:
接口 Document 中的 adoptNode
抛出:
DOMException

getDomConfig

public DOMConfiguration getDomConfig()
指定者:
接口 Document 中的 getDomConfig

normalizeDocument

public void normalizeDocument()
指定者:
接口 Document 中的 normalizeDocument

renameNode

public Node renameNode(Node node,
                       String string,
                       String string1)
                throws DOMException
指定者:
接口 Document 中的 renameNode
抛出:
DOMException