2362N/A * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * The main class to parse JavaBeans XML archive. 0N/A * @author Sergey A. Malenkov 0N/A * @see ElementHandler 0N/A * Creates new instance of document handler. 0N/A // some handlers for new elements 0N/A * Returns the class loader used to instantiate objects. 0N/A * If the class loader has not been explicitly set 0N/A * then {@code null} is returned. 0N/A * @return the class loader used to instantiate objects 0N/A * Sets the class loader used to instantiate objects. 0N/A * If the class loader is not set 0N/A * then default class loader will be used. 0N/A * @param loader a classloader to use * Returns the exception listener for parsing. * The exception listener is notified * when handler catches recoverable exceptions. * If the exception listener has not been explicitly set * then default exception listener is returned. * @return the exception listener for parsing * Sets the exception listener for parsing. * The exception listener is notified * when handler catches recoverable exceptions. * @param listener the exception listener for parsing * Returns the owner of this document handler. * @return the owner of this document handler * Sets the owner of this document handler. * @param owner the owner of this document handler * Returns the handler for the element with specified name. * @param name the name of the element * @return the corresponding element handler * Sets the handler for the element with specified name. * @param name the name of the element * @param handler the corresponding element handler * Indicates whether the variable with specified identifier is defined. * @param id the identifier * @return @{code true} if the variable is defined; * @{code false} otherwise * Returns the value of the variable with specified identifier. * @param id the identifier * @return the value of the variable * Sets new value of the variable with specified identifier. * @param id the identifier * @param value new value of the variable * Returns the array of readed objects. * @return the array of readed objects * Adds the object to the list of readed objects. * @param object the object that is readed from XML document * Prepares this handler to read objects from XML document. * Parses opening tag of XML element * using corresponding element handler. * @param uri the namespace URI, or the empty string * if the element has no namespace URI or * if namespace processing is not being performed * @param localName the local name (without prefix), or the empty string * if namespace processing is not being performed * @param qName the qualified name (with prefix), or the empty string * if qualified names are not available * @param attributes the attributes attached to the element * Parses closing tag of XML element * using corresponding element handler. * @param uri the namespace URI, or the empty string * if the element has no namespace URI or * if namespace processing is not being performed * @param localName the local name (without prefix), or the empty string * if namespace processing is not being performed * @param qName the qualified name (with prefix), or the empty string * if qualified names are not available * Parses character data inside XML element. * @param chars the array of characters * @param start the start position in the character array * @param length the number of characters to use * Handles an exception using current exception listener. * @param exception an exception to handle * @see #setExceptionListener * Starts parsing of the specified input source. * @param input the input source to parse * Resolves class by name using current class loader. * This method handles exception using current exception listener. * @param name the name of the class * @return the object that represents the class