XBRLAPI

A Java API for XBRL


org.xbrlapi.sax
Interface ContentHandler

All Superinterfaces:
ContentHandler

public interface ContentHandler
extends ContentHandler

Author:
Geoff Shuetrim (geoff@galexy.net)

Method Summary
 void error(SAXParseException exception)
          Handles SAX parsing exceptions.
 void fatalError(SAXParseException exception)
          Handles fatal SAX parsing exceptions.
 ElementState getElementState()
           
 List<Identifier> getIdentifiers()
           
 Loader getLoader()
           
 URI getURI()
           
 void setElementState(ElementState state)
           
 void setLoader(Loader loader)
           
 void setURI(URI uri)
           
 void warning(SAXParseException exception)
          Handles warnings based on SAX parsing exceptions.
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 

Method Detail

getLoader

Loader getLoader()
Returns:
the loader using this content handler.

setLoader

void setLoader(Loader loader)
               throws XBRLException
Parameters:
loader - The loader that will use the content handler.
Throws:
XBRLException - if the loader is null

getURI

URI getURI()
Returns:
the URI of the document being parsed.

setURI

void setURI(URI uri)
            throws XBRLException
Parameters:
uri - The URI of the document being parsed.
Throws:
XBRLException - if the URI is null.

setElementState

void setElementState(ElementState state)
Parameters:
state - The element state

getElementState

ElementState getElementState()
Returns:
the state for the element currently being parsed.

getIdentifiers

List<Identifier> getIdentifiers()
Returns:
the list of fragment identifiers used by the content handler.

error

void error(SAXParseException exception)
           throws SAXException
Handles SAX parsing exceptions.

Parameters:
exception - The SAX parsing exception
Throws:
SAXException

fatalError

void fatalError(SAXParseException exception)
                throws SAXException
Handles fatal SAX parsing exceptions.

Parameters:
exception - The fatal SAX parsing exception.
Throws:
SAXException

warning

void warning(SAXParseException exception)
             throws SAXException
Handles warnings based on SAX parsing exceptions.

Parameters:
exception - the SAX parsing exception triggering the warning.
Throws:
SAXException

Get Java XBRL API implementation at SourceForge.net.