Home » openjdk-7 » com.sun » beans » decoder » [javadoc | source]
com.sun.beans.decoder
public final class: DocumentHandler [javadoc | source]
java.lang.Object
   org.xml.sax.helpers.DefaultHandler
      com.sun.beans.decoder.DocumentHandler

All Implemented Interfaces:
    ErrorHandler, EntityResolver, ContentHandler, DTDHandler

The main class to parse JavaBeans XML archive.
Constructor:
 public DocumentHandler() 
Method from com.sun.beans.decoder.DocumentHandler Summary:
addObject,   characters,   endElement,   findClass,   getClassLoader,   getElementHandler,   getExceptionListener,   getObjects,   getOwner,   getVariable,   handleException,   hasVariable,   parse,   setClassLoader,   setElementHandler,   setExceptionListener,   setOwner,   setVariable,   startDocument,   startElement
Methods from org.xml.sax.helpers.DefaultHandler:
characters,   endDocument,   endElement,   endPrefixMapping,   error,   fatalError,   ignorableWhitespace,   notationDecl,   processingInstruction,   resolveEntity,   setDocumentLocator,   skippedEntity,   startDocument,   startElement,   startPrefixMapping,   unparsedEntityDecl,   warning
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.beans.decoder.DocumentHandler Detail:
  void addObject(Object object) 
    Adds the object to the list of readed objects.
 public  void characters(char[] chars,
    int start,
    int length) 
    Parses character data inside XML element.
 public  void endElement(String uri,
    String localName,
    String qName) 
    Parses closing tag of XML element using corresponding element handler.
 public Class<?> findClass(String name) 
    Resolves class by name using current class loader. This method handles exception using current exception listener.
 public ClassLoader getClassLoader() 
    Returns the class loader used to instantiate objects. If the class loader has not been explicitly set then {@code null} is returned.
 public Class<ElementHandler> getElementHandler(String name) 
    Returns the handler for the element with specified name.
 public ExceptionListener getExceptionListener() 
    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.
 public Object[] getObjects() 
    Returns the array of readed objects.
 public Object getOwner() 
    Returns the owner of this document handler.
 public Object getVariable(String id) 
    Returns the value of the variable with specified identifier.
 public  void handleException(Exception exception) 
    Handles an exception using current exception listener.
 public boolean hasVariable(String id) 
    Indicates whether the variable with specified identifier is defined.
 public  void parse(InputSource input) 
    Starts parsing of the specified input source.
 public  void setClassLoader(ClassLoader loader) 
    Sets the class loader used to instantiate objects. If the class loader is not set then default class loader will be used.
 public  void setElementHandler(String name,
    Class<ElementHandler> handler) 
    Sets the handler for the element with specified name.
 public  void setExceptionListener(ExceptionListener listener) 
    Sets the exception listener for parsing. The exception listener is notified when handler catches recoverable exceptions.
 public  void setOwner(Object owner) 
    Sets the owner of this document handler.
 public  void setVariable(String id,
    Object value) 
    Sets new value of the variable with specified identifier.
 public  void startDocument() 
    Prepares this handler to read objects from XML document.
 public  void startElement(String uri,
    String localName,
    String qName,
    Attributes attributes) throws SAXException 
    Parses opening tag of XML element using corresponding element handler.