| java.lang.Object org.enhydra.util.dom.SimpleXMLObjectImpl org.enhydra.util.jivan.JivanSimpleXMLObjectImpl
JivanSimpleXMLObjectImpl | public class JivanSimpleXMLObjectImpl extends SimpleXMLObjectImpl (Code) | | Title: JivanSimpleXMLObjectImpl
Description: This class represents implementation of XMLObject interface.
Its main purpose is to provide the way for creation of XMLObject object by
passed Jivan org.w3c.dom.Document Jivan implementation. The XMLCObject
created by this manner can be used in already existing writeDOM() methods of
ServletHttpPresentationResponse object to perform http response. Note that
this class was tested only in in http response, not in DOM manipulation, and
some methods throw an exception
because they are not implemented.
Copyright: Copyright (c) 2004
Company: Together
author: Vladimir Radisic version: 1.0 |
Method Summary | |
public void | setDocument(Document document, String mimeType, String encoding) Set the Jivan implemented DOM document associated with this object and
optional encoding. | public void | setDocument(Document document, String encoding) Set the Jivan implemented DOM document associated with this object and
optional encoding. | public void | setDocument(Document document) Set the Jivan implemented DOM document associated with this object and
optional encoding. | public void | setDocument(DocumentManager docMan, String mimeType, String encoding) Set the Jivan implemented DOM document associated with this object via
corresponding DocumentManager and optional encoding. | public void | setDocument(DocumentManager docMan, String encoding) Set the Jivan implemented DOM document associated with this object via
corresponding DocumentManager and optional encoding. | public void | setDocument(DocumentManager docMan) Set the Jivan implemented DOM document associated with this object via
corresponding DocumentManager and optional encoding. | public byte[] | toByteDocument() Transforms Jivan Document DOM object to byte array. |
JivanSimpleXMLObjectImpl | public JivanSimpleXMLObjectImpl()(Code) | | |
setDocument | public void setDocument(Document document, String mimeType, String encoding)(Code) | | Set the Jivan implemented DOM document associated with this object and
optional encoding. Note that if argument 'document' is not of type
org.jivan.html.dom.HTMLDocumentCEImpl, the ClassCastException will be
thrown.
Parameters: document - org.w3c.dom.Document implementation which should beassociated with this object, Parameters: mimeType - The MIME type associated with the document. Parameters: encoding - The encoding associated with the document. |
setDocument | public void setDocument(Document document, String encoding)(Code) | | Set the Jivan implemented DOM document associated with this object and
optional encoding. The MIME type is set to default value ('text/html').
Note that if argument 'document' is not of type
org.jivan.html.dom.HTMLDocumentCEImpl, the ClassCastException will be
thrown.
Parameters: document - org.w3c.dom.Document implementation which should beassociated with this object, Parameters: encoding - The encoding associated with the document. |
setDocument | public void setDocument(Document document)(Code) | | Set the Jivan implemented DOM document associated with this object and
optional encoding. The MIME type is set to default value ('text/html'),
and encoding is also set to default value ('UTF-8'). Note that if argument
'document' is not of type org.jivan.html.dom.HTMLDocumentCEImpl, the
ClassCastException will be thrown.
Parameters: document - org.w3c.dom.Document implementation which should beassociated with this object, |
setDocument | public void setDocument(DocumentManager docMan, String mimeType, String encoding)(Code) | | Set the Jivan implemented DOM document associated with this object via
corresponding DocumentManager and optional encoding.
Parameters: docMan - appropriate DocumentManager object which contains the desiredJivan Document implementation (org.jivan.html.dom.HTMLDocumentCEImpl). Parameters: mimeType - The MIME type associated with the document. Parameters: encoding - The encoding associated with the document. |
setDocument | public void setDocument(DocumentManager docMan, String encoding)(Code) | | Set the Jivan implemented DOM document associated with this object via
corresponding DocumentManager and optional encoding. The MIME type is set
to default value ('text/html').
Parameters: docMan - appropriate DocumentManager object which contains the desiredJivan Document implementation (org.jivan.html.dom.HTMLDocumentCEImpl). Parameters: encoding - The encoding associated with the document. |
setDocument | public void setDocument(DocumentManager docMan)(Code) | | Set the Jivan implemented DOM document associated with this object via
corresponding DocumentManager and optional encoding. The MIME type is set
to default value ('text/html'), and encoding is also set to default value
('UTF-8').
Parameters: docMan - appropriate DocumentManager object which contains the desiredJivan Document implementation (org.jivan.html.dom.HTMLDocumentCEImpl). |
toByteDocument | public byte[] toByteDocument() throws IOException(Code) | | Transforms Jivan Document DOM object to byte array. This will be done by
using corresponding DocumentManager and its serialize() method
DOM represented as byte array. throws: IOException - |
Methods inherited from org.enhydra.util.dom.SimpleXMLObjectImpl | public Node adoptNode(Node source) throws DOMException(Code)(Java Doc) public Node appendChild(Node newChild) throws DOMException(Code)(Java Doc) public void buildDocument()(Code)(Java Doc) protected void cloneDeepCheck(boolean deep)(Code)(Java Doc) public Node cloneNode(boolean parm1)(Code)(Java Doc) public short compareDocumentPosition(Node arg0) throws DOMException(Code)(Java Doc) public Attr createAttribute(String qualifiedName) throws DOMException(Code)(Java Doc) public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException(Code)(Java Doc) public CDATASection createCDATASection(String data) throws DOMException(Code)(Java Doc) public Comment createComment(String data)(Code)(Java Doc) public DocumentFragment createDocumentFragment()(Code)(Java Doc) public Element createElement(String tagName) throws DOMException(Code)(Java Doc) public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException(Code)(Java Doc) public EntityReference createEntityReference(String name) throws DOMException(Code)(Java Doc) public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException(Code)(Java Doc) public Text createTextNode(String data)(Code)(Java Doc) final protected void doSetText(Element element, String text)(Code)(Java Doc) public NamedNodeMap getAttributes()(Code)(Java Doc) public String getBaseURI()(Code)(Java Doc) public NodeList getChildNodes()(Code)(Java Doc) public XMLObject getDelegate()(Code)(Java Doc) public DocumentType getDoctype()(Code)(Java Doc) public Document getDocument()(Code)(Java Doc) public Element getDocumentElement()(Code)(Java Doc) public String getDocumentURI()(Code)(Java Doc) public DOMConfiguration getDomConfig()(Code)(Java Doc) protected XMLCDomFactory getDomFactory()(Code)(Java Doc) public Element getElementById(String elementId)(Code)(Java Doc) public NodeList getElementsByTagName(String tagname)(Code)(Java Doc) public NodeList getElementsByTagNameNS(String namespaceURI, String localName)(Code)(Java Doc) public String getEncoding()(Code)(Java Doc) public Object getFeature(String arg0, String arg1)(Code)(Java Doc) public Node getFirstChild()(Code)(Java Doc) public DOMImplementation getImplementation()(Code)(Java Doc) public String getInputEncoding()(Code)(Java Doc) public Node getLastChild()(Code)(Java Doc) public String getLocalName()(Code)(Java Doc) public String getMIMEType()(Code)(Java Doc) public String getNamespaceURI()(Code)(Java Doc) public Node getNextSibling()(Code)(Java Doc) public String getNodeName()(Code)(Java Doc) public short getNodeType()(Code)(Java Doc) public String getNodeValue() throws DOMException(Code)(Java Doc) public Document getOwnerDocument()(Code)(Java Doc) public Node getParentNode()(Code)(Java Doc) public String getPrefix()(Code)(Java Doc) public Node getPreviousSibling()(Code)(Java Doc) public boolean getStandalone()(Code)(Java Doc) public boolean getStrictErrorChecking()(Code)(Java Doc) public String getTextContent() throws DOMException(Code)(Java Doc) public Object getUserData(String arg0)(Code)(Java Doc) public String getVersion()(Code)(Java Doc) public String getXmlEncoding()(Code)(Java Doc) public boolean getXmlStandalone()(Code)(Java Doc) public String getXmlVersion()(Code)(Java Doc) public boolean hasAttributes()(Code)(Java Doc) public boolean hasChildNodes()(Code)(Java Doc) public Node importNode(Node importedNode, boolean deep) throws DOMException(Code)(Java Doc) public void initFields()(Code)(Java Doc) public Node insertBefore(Node newChild, Node refChild) throws DOMException(Code)(Java Doc) public boolean isDefaultNamespace(String arg0)(Code)(Java Doc) public boolean isEqualNode(Node arg0)(Code)(Java Doc) public boolean isSameNode(Node arg0)(Code)(Java Doc) public boolean isSupported(String feature, String version)(Code)(Java Doc) public boolean isURLAttribute(Element element, String attrName)(Code)(Java Doc) public String lookupNamespaceURI(String arg0)(Code)(Java Doc) public String lookupPrefix(String arg0)(Code)(Java Doc) public void normalize()(Code)(Java Doc) public void normalizeDocument()(Code)(Java Doc) public Node removeChild(Node oldChild) throws DOMException(Code)(Java Doc) public Node renameNode(Node arg0, String arg1, String arg2) throws DOMException(Code)(Java Doc) public Node replaceChild(Node newChild, Node oldChild) throws DOMException(Code)(Java Doc) public void setDelegate(XMLObject delegate)(Code)(Java Doc) public void setDocument(Document document, String mimeType, String encoding)(Code)(Java Doc) public void setDocumentURI(String arg0)(Code)(Java Doc) public void setEncoding(String encoding)(Code)(Java Doc) public void setNodeValue(String nodeValue) throws DOMException(Code)(Java Doc) public void setPrefix(String prefix)(Code)(Java Doc) public void setStandalone(boolean standalone)(Code)(Java Doc) public void setStrictErrorChecking(boolean strictErrorChecking)(Code)(Java Doc) public void setTextContent(String arg0) throws DOMException(Code)(Java Doc) public Object setUserData(String arg0, Object arg1, UserDataHandler arg2)(Code)(Java Doc) public void setVersion(String version)(Code)(Java Doc) public void setXmlStandalone(boolean arg0) throws DOMException(Code)(Java Doc) public void setXmlVersion(String arg0) throws DOMException(Code)(Java Doc) public void syncAccessMethods()(Code)(Java Doc) protected void syncWithDocument(Node node)(Code)(Java Doc) public String toDocument()(Code)(Java Doc)
|
|
|