Overview | Package | Class | Tree | Deprecated | Index | Help
| SOA © 2004 SoS Group All Rights Reserved
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## sos.koa
Class AbstractObjectReader

    java.lang.Object
      sos.koa.AbstractObjectReader

All Implemented Interfaces:
  org.xml.sax.XMLReader

Direct Known Subclasses:
  AuditLogXMLReader, CandidateListXMLReader

public abstract class AbstractObjectReader
extends java.lang.Object
implements org.xml.sax.XMLReader

This class can be used as base class for XMLReaders that generate SAX events from Java objects.

Field Summary
`protected org.xml.sax.ErrorHandler` | `errorHandler` Error handler
`private java.util.Map` | `features`
`protected EasyGenerationContentHandlerProxy` | `handler` Proxy for easy SAX event generation
`private static java.lang.String` | `NAMESPACES`
`private static java.lang.String` | `NS_PREFIXES`
`private org.xml.sax.ContentHandler` | `orgHandler`

Constructor Summary
`AbstractObjectReader()` Constructor for the AbstractObjectReader object

Method Summary
`org.xml.sax.ContentHandler` | `getContentHandler()`
`org.xml.sax.DTDHandler` | `getDTDHandler()`
`org.xml.sax.EntityResolver` | `getEntityResolver()`
`org.xml.sax.ErrorHandler` | `getErrorHandler()`
`boolean` | `getFeature(java.lang.String name)`
`java.lang.Object` | `getProperty(java.lang.String name)`
`protected boolean` | `isNamespacePrefixes()` Returns true if the MS_PREFIXES feature is enabled.
`protected boolean` | `isNamespaces()` Returns true if the NAMESPACES feature is enabled.
`abstract void` | `parse(org.xml.sax.InputSource input)`
`void` | `parse(java.lang.String systemId)`
`void` | `setContentHandler(org.xml.sax.ContentHandler handler)`
`void` | `setDTDHandler(org.xml.sax.DTDHandler handler)`
`void` | `setEntityResolver(org.xml.sax.EntityResolver resolver)`
`void` | `setErrorHandler(org.xml.sax.ErrorHandler handler)`
`void` | `setFeature(java.lang.String name, boolean value)`
`void` | `setProperty(java.lang.String name, java.lang.Object value)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### NAMESPACES

    private static final java.lang.String NAMESPACES

See Also:
  Constant Field Values

### NS_PREFIXES

    private static final java.lang.String NS_PREFIXES

See Also:
  Constant Field Values

### features

    private java.util.Map features

### orgHandler

    private org.xml.sax.ContentHandler orgHandler

### handler

    protected EasyGenerationContentHandlerProxy handler

  Proxy for easy SAX event generation

### errorHandler

    protected org.xml.sax.ErrorHandler errorHandler

  Error handler

Constructor Detail

### AbstractObjectReader

    public AbstractObjectReader()

  Constructor for the AbstractObjectReader object

Method Detail

### getContentHandler

    public org.xml.sax.ContentHandler getContentHandler()

  Specified by:
    `getContentHandler` in interface `org.xml.sax.XMLReader`
  See Also:
    `XMLReader.getContentHandler()`

### setContentHandler

    public void setContentHandler(org.xml.sax.ContentHandler handler)

  Specified by:
    `setContentHandler` in interface `org.xml.sax.XMLReader`
  See Also:
    `XMLReader.setContentHandler(ContentHandler)`

### getErrorHandler

    public org.xml.sax.ErrorHandler getErrorHandler()

  Specified by:
    `getErrorHandler` in interface `org.xml.sax.XMLReader`
  See Also:
    `XMLReader.getErrorHandler()`

### setErrorHandler

    public void setErrorHandler(org.xml.sax.ErrorHandler handler)

  Specified by:
    `setErrorHandler` in interface `org.xml.sax.XMLReader`
  See Also:
    `XMLReader.setErrorHandler(ErrorHandler)`

### getDTDHandler

    public org.xml.sax.DTDHandler getDTDHandler()

  Specified by:
    `getDTDHandler` in interface `org.xml.sax.XMLReader`
  See Also:
    `XMLReader.getDTDHandler()`

### setDTDHandler

    public void setDTDHandler(org.xml.sax.DTDHandler handler)

  Specified by:
    `setDTDHandler` in interface `org.xml.sax.XMLReader`
  See Also:
    `XMLReader.setDTDHandler(DTDHandler)`

### getEntityResolver

    public org.xml.sax.EntityResolver getEntityResolver()

  Specified by:
    `getEntityResolver` in interface `org.xml.sax.XMLReader`
  See Also:
    `XMLReader.getEntityResolver()`

### setEntityResolver

    public void setEntityResolver(org.xml.sax.EntityResolver resolver)

  Specified by:
    `setEntityResolver` in interface `org.xml.sax.XMLReader`
  See Also:
    `XMLReader.setEntityResolver(EntityResolver)`

### getProperty

    public java.lang.Object getProperty(java.lang.String name)

  Specified by:
    `getProperty` in interface `org.xml.sax.XMLReader`
  See Also:
    `XMLReader.getProperty(String)`

### setProperty

    public void setProperty(java.lang.String name,
                            java.lang.Object value)

  Specified by:
    `setProperty` in interface `org.xml.sax.XMLReader`
  See Also:
    `XMLReader.setProperty(String, Object)`

### getFeature

    public boolean getFeature(java.lang.String name)

  Specified by:
    `getFeature` in interface `org.xml.sax.XMLReader`
  See Also:
    `XMLReader.getFeature(String)`

### isNamespaces

    protected boolean isNamespaces()

  Returns true if the NAMESPACES feature is enabled.

  Returns:
    boolean true if enabled

### isNamespacePrefixes

    protected boolean isNamespacePrefixes()

  Returns true if the MS_PREFIXES feature is enabled.

  Returns:
    boolean true if enabled

### setFeature

    public void setFeature(java.lang.String name,
                           boolean value)

  Specified by:
    `setFeature` in interface `org.xml.sax.XMLReader`
  See Also:
    `XMLReader.setFeature(String, boolean)`

### parse

    public void parse(java.lang.String systemId)
               throws java.io.IOException,
                      org.xml.sax.SAXException

  Specified by:
    `parse` in interface `org.xml.sax.XMLReader`
  Throws:
    `java.io.IOException`
    `org.xml.sax.SAXException`
  See Also:
    `XMLReader.parse(String)`

### parse

    public abstract void parse(org.xml.sax.InputSource input)
                        throws java.io.IOException,
                               org.xml.sax.SAXException

  Specified by:
    `parse` in interface `org.xml.sax.XMLReader`
  Throws:
    `java.io.IOException`
    `org.xml.sax.SAXException`
  See Also:
    `XMLReader.parse(InputSource)`

Overview | Package | Class | Tree | Deprecated | Index | Help
| SOA © 2004 SoS Group All Rights Reserved
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD