Package org.apache.struts2.result.xslt
Class SimpleAdapterDocument
java.lang.Object
org.apache.struts2.result.xslt.AbstractAdapterNode
org.apache.struts2.result.xslt.SimpleAdapterDocument
- All Implemented Interfaces:
- AdapterNode,- Document,- Node
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.
- 
Field SummaryFields inherited from interface org.w3c.dom.NodeATTRIBUTE_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
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleAdapterDocument(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, Object value) 
- 
Method SummaryModifier and TypeMethodDescriptioncreateAttribute(String string) createAttributeNS(String string, String string1) createCDATASection(String string) createComment(String string) createElement(String string) createElementNS(String string, String string1) createEntityReference(String string) createProcessingInstruction(String string, String string1) createTextNode(String string) Lazily initialize child adaptersgetChildAfter(Node child) The child node after the specified siblinggetChildBefore(Node child) The child node before the specified siblinggetElementById(String string) getElementsByTagName(String string) getElementsByTagNameNS(String string, String string1) shortbooleanbooleanbooleanimportNode(Node node, boolean b) voidrenameNode(Node node, String string, String string1) voidsetDocumentURI(String string) voidsetPropertyValue(Object prop) voidsetStrictErrorChecking(boolean b) voidsetXmlStandalone(boolean b) voidsetXmlVersion(String string) Methods inherited from class org.apache.struts2.result.xslt.AbstractAdapterNodeappendChild, buildChildAdapters, 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, operationNotSupported, removeChild, replaceChild, setAdapterFactory, setContext, setNodeValue, setParent, setPrefix, setPropertyName, setTextContent, setUserData, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.w3c.dom.NodeappendChild, 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
- 
Constructor Details- 
SimpleAdapterDocumentpublic SimpleAdapterDocument(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, Object value) 
 
- 
- 
Method Details- 
setPropertyValue- Specified by:
- setPropertyValuein interface- AdapterNode
- Overrides:
- setPropertyValuein class- AbstractAdapterNode
- Parameters:
- prop- the Java object (property) that we are adapting
 
- 
getChildAdaptersDescription copied from class:AbstractAdapterNodeLazily initialize child adapters- Overrides:
- getChildAdaptersin class- AbstractAdapterNode
- Returns:
- node list
 
- 
getChildNodes- Specified by:
- getChildNodesin interface- Node
- Overrides:
- getChildNodesin class- AbstractAdapterNode
 
- 
getDoctype- Specified by:
- getDoctypein interface- Document
 
- 
getDocumentElement- Specified by:
- getDocumentElementin interface- Document
 
- 
getElementById- Specified by:
- getElementByIdin interface- Document
 
- 
getElementsByTagName- Specified by:
- getElementsByTagNamein interface- Document
- Overrides:
- getElementsByTagNamein class- AbstractAdapterNode
 
- 
getElementsByTagNameNS- Specified by:
- getElementsByTagNameNSin interface- Document
- Overrides:
- getElementsByTagNameNSin class- AbstractAdapterNode
 
- 
getFirstChild- Specified by:
- getFirstChildin interface- Node
- Overrides:
- getFirstChildin class- AbstractAdapterNode
 
- 
getImplementation- Specified by:
- getImplementationin interface- Document
 
- 
getLastChild- Specified by:
- getLastChildin interface- Node
- Overrides:
- getLastChildin class- AbstractAdapterNode
 
- 
getNodeName- Specified by:
- getNodeNamein interface- Node
- Overrides:
- getNodeNamein class- AbstractAdapterNode
 
- 
getNodeTypepublic short getNodeType()- Specified by:
- getNodeTypein interface- Node
- Overrides:
- getNodeTypein class- AbstractAdapterNode
 
- 
createAttribute- Specified by:
- createAttributein interface- Document
- Throws:
- DOMException
 
- 
createAttributeNS- Specified by:
- createAttributeNSin interface- Document
- Throws:
- DOMException
 
- 
createCDATASection- Specified by:
- createCDATASectionin interface- Document
- Throws:
- DOMException
 
- 
createComment- Specified by:
- createCommentin interface- Document
 
- 
createDocumentFragment- Specified by:
- createDocumentFragmentin interface- Document
 
- 
createElement- Specified by:
- createElementin interface- Document
- Throws:
- DOMException
 
- 
createElementNS- Specified by:
- createElementNSin interface- Document
- Throws:
- DOMException
 
- 
createEntityReference- Specified by:
- createEntityReferencein interface- Document
- Throws:
- DOMException
 
- 
createProcessingInstructionpublic ProcessingInstruction createProcessingInstruction(String string, String string1) throws DOMException - Specified by:
- createProcessingInstructionin interface- Document
- Throws:
- DOMException
 
- 
createTextNode- Specified by:
- createTextNodein interface- Document
 
- 
hasChildNodespublic boolean hasChildNodes()- Specified by:
- hasChildNodesin interface- Node
- Overrides:
- hasChildNodesin class- AbstractAdapterNode
 
- 
importNode- Specified by:
- importNodein interface- Document
- Throws:
- DOMException
 
- 
getChildAfterDescription copied from interface:AdapterNodeThe child node after the specified sibling- Specified by:
- getChildAfterin interface- AdapterNode
- Overrides:
- getChildAfterin class- AbstractAdapterNode
- Parameters:
- child- this node
- Returns:
- the child node after
 
- 
getChildBeforeDescription copied from interface:AdapterNodeThe child node before the specified sibling- Specified by:
- getChildBeforein interface- AdapterNode
- Overrides:
- getChildBeforein class- AbstractAdapterNode
- Parameters:
- child- this node
- Returns:
- the child node before
 
- 
getInputEncoding- Specified by:
- getInputEncodingin interface- Document
 
- 
getXmlEncoding- Specified by:
- getXmlEncodingin interface- Document
 
- 
getXmlStandalonepublic boolean getXmlStandalone()- Specified by:
- getXmlStandalonein interface- Document
 
- 
setXmlStandalone- Specified by:
- setXmlStandalonein interface- Document
- Throws:
- DOMException
 
- 
getXmlVersion- Specified by:
- getXmlVersionin interface- Document
 
- 
setXmlVersion- Specified by:
- setXmlVersionin interface- Document
- Throws:
- DOMException
 
- 
getStrictErrorCheckingpublic boolean getStrictErrorChecking()- Specified by:
- getStrictErrorCheckingin interface- Document
 
- 
setStrictErrorCheckingpublic void setStrictErrorChecking(boolean b) - Specified by:
- setStrictErrorCheckingin interface- Document
 
- 
getDocumentURI- Specified by:
- getDocumentURIin interface- Document
 
- 
setDocumentURI- Specified by:
- setDocumentURIin interface- Document
 
- 
adoptNode- Specified by:
- adoptNodein interface- Document
- Throws:
- DOMException
 
- 
getDomConfig- Specified by:
- getDomConfigin interface- Document
 
- 
normalizeDocumentpublic void normalizeDocument()- Specified by:
- normalizeDocumentin interface- Document
 
- 
renameNode- Specified by:
- renameNodein interface- Document
- Throws:
- DOMException
 
 
-