286N/A * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 286N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 286N/A * This code is free software; you can redistribute it and/or modify it 286N/A * under the terms of the GNU General Public License version 2 only, as 286N/A * published by the Free Software Foundation. Oracle designates this 286N/A * particular file as subject to the "Classpath" exception as provided 286N/A * by Oracle in the LICENSE file that accompanied this code. 286N/A * This code is distributed in the hope that it will be useful, but WITHOUT 286N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 286N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 286N/A * version 2 for more details (a copy is included in the LICENSE file that 286N/A * accompanied this code). 286N/A * You should have received a copy of the GNU General Public License version 286N/A * 2 along with this work; if not, write to the Free Software Foundation, 286N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 286N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 286N/A * or visit www.oracle.com if you need additional information or have any 286N/A * This class provides support to build a DOM tree using XMLStreamWriter API's. 286N/A * @author K.Venugopal@sun.com 286N/A * Internal NamespaceManagement 286N/A * support for isRepairNamespace property. 286N/A * Some Unsupported Methods. 286N/A * Change StringBuffer to StringBuilder, when JDK 1.5 will be minimum requirement for SJSXP. 286N/A * Creates a new instance of XMLDOMwriterImpl 286N/A * @param result DOMResult object @javax.xml.transform.dom.DOMResult 286N/A //log these errors at fine level. 286N/A //log these errors at fine level. 286N/A * This method has no effect when called. 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * This method has no effect when called. 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * @return {@inheritDoc} 286N/A * @param namespaceURI {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * @return {@inheritDoc} 286N/A * Is not supported in this implementation. 286N/A * @param str {@inheritDoc} 286N/A * @throws java.lang.IllegalArgumentException {@inheritDoc} 286N/A * @return {@inheritDoc} 286N/A * Is not supported in this version of the implementation. 286N/A * @param uri {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * @param namespaceContext {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * Is not supported in this version of the implementation. 286N/A * @param prefix {@inheritDoc} 286N/A * @param uri {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * Creates a DOM Atrribute @see org.w3c.dom.Node and associates it with the current DOM element @see org.w3c.dom.Node. 286N/A * @param localName {@inheritDoc} 286N/A * @param value {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A //Convert node type to String 286N/A "and does not allow attributes to be set ");
286N/A * Creates a DOM Atrribute @see org.w3c.dom.Node and associates it with the current DOM element @see org.w3c.dom.Node. 286N/A * @param namespaceURI {@inheritDoc} 286N/A * @param localName {@inheritDoc} 286N/A * @param value {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A "is not bound to any prefix" );
286N/A //Convert node type to String 286N/A "and does not allow attributes to be set ");
286N/A * Creates a DOM Atrribute @see org.w3c.dom.Node and associates it with the current DOM element @see org.w3c.dom.Node. 286N/A * @param prefix {@inheritDoc} 286N/A * @param namespaceURI {@inheritDoc} 286N/A * @param localName {@inheritDoc} 286N/A * @param value {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A //Convert node type to String 286N/A "and does not allow attributes to be set ");
286N/A * Creates a CDATA object @see org.w3c.dom.CDATASection. 286N/A * @param data {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * Creates a character object @see org.w3c.dom.Text and appends it to the current 286N/A * element in the DOM tree. 286N/A * @param charData {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * Creates a character object @see org.w3c.dom.Text and appends it to the current 286N/A * element in the DOM tree. 286N/A * @param values {@inheritDoc} 286N/A * @param param {@inheritDoc} 286N/A * @param param2 {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * Creates a Comment object @see org.w3c.dom.Comment and appends it to the current 286N/A * element in the DOM tree. 286N/A * @param str {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * This method is not supported in this implementation. 286N/A * @param str {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * Creates a DOM attribute and adds it to the current element in the DOM tree. 286N/A * @param namespaceURI {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A //Convert node type to String 286N/A "and does not allow attributes to be set ");
286N/A * creates a DOM Element and appends it to the current element in the tree. 286N/A * @param localName {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * creates a DOM Element and appends it to the current element in the tree. 286N/A * @param namespaceURI {@inheritDoc} 286N/A * @param localName {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A "is not bound to any prefix" );
286N/A //currentNode = element; 286N/A * creates a DOM Element and appends it to the current element in the tree. 286N/A * @param prefix {@inheritDoc} 286N/A * @param localName {@inheritDoc} 286N/A * @param namespaceURI {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * Will reset current Node pointer maintained by the implementation. 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A //What do you want me to do eh! :) 286N/A * Internal current Node pointer will point to the parent of the current Node. 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * Is not supported in this implementation. 286N/A * @param name {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * creates a namespace attribute and will associate it with the current element in 286N/A * @param prefix {@inheritDoc} 286N/A * @param namespaceURI {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * is not supported in this release. 286N/A * @param target {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * is not supported in this release. 286N/A * @param target {@inheritDoc} 286N/A * @param data {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * will set version on the Document object when the DOM Node passed to this implementation 286N/A * supports DOM Level3 API's. 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * will set version on the Document object when the DOM Node passed to this implementation 286N/A * supports DOM Level3 API's. 286N/A * @param version {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * will set version on the Document object when the DOM Node passed to this implementation 286N/A * supports DOM Level3 API's. 286N/A * @param encoding {@inheritDoc} 286N/A * @param version {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A //TODO: What to do with encoding.-Venu 286N/A * creates a DOM Element and appends it to the current element in the tree. 286N/A * @param localName {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A * creates a DOM Element and appends it to the current element in the tree. 286N/A * @param namespaceURI {@inheritDoc} 286N/A * @param localName {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc} 286N/A "is not bound to any prefix" );
286N/A * creates a DOM Element and appends it to the current element in the tree. 286N/A * @param prefix {@inheritDoc} 286N/A * @param localName {@inheritDoc} 286N/A * @param namespaceURI {@inheritDoc} 286N/A * @throws javax.xml.stream.XMLStreamException {@inheritDoc}