com.ihr.xbrl.util
Class XBRLDocumentContentExplorer

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.ihr.xbrl.util.XBRLDocumentContentExplorer
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class XBRLDocumentContentExplorer
extends org.xml.sax.helpers.DefaultHandler

Collects information about the instance while processing the nodes.

Author:
Ignacio

Field Summary
static int EXCEPTION_WHILE_READING_DOCUMENT
           
static int NOT_AN_XBRL_DOCUMENT
           
 
Constructor Summary
XBRLDocumentContentExplorer()
           
 
Method Summary
 java.lang.Exception getException()
          Access to the Exception message raised during parsing of this document.
 int getFileType()
           
 java.util.ArrayList<java.lang.String> getLinkbases()
           
 java.util.ArrayList<java.lang.String> getSchemas()
           
 void setException(java.lang.Exception exception)
          Called by the FastDocumentTypeIdentifier in case of an exception while reading the incoming file.
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_AN_XBRL_DOCUMENT

public static final int NOT_AN_XBRL_DOCUMENT
See Also:
Constant Field Values

EXCEPTION_WHILE_READING_DOCUMENT

public static final int EXCEPTION_WHILE_READING_DOCUMENT
See Also:
Constant Field Values
Constructor Detail

XBRLDocumentContentExplorer

public XBRLDocumentContentExplorer()
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String name,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

getLinkbases

public java.util.ArrayList<java.lang.String> getLinkbases()

getSchemas

public java.util.ArrayList<java.lang.String> getSchemas()

getFileType

public int getFileType()
Returns:

setException

public void setException(java.lang.Exception exception)
Called by the FastDocumentTypeIdentifier in case of an exception while reading the incoming file. Sets the document type as EXCEPTION_WHILE_READING_DOCUMENT.

Parameters:
exception -

getException

public java.lang.Exception getException()
Access to the Exception message raised during parsing of this document. It null is the document type is not EXCEPTION_WHILE_READING_DOCUMENT

Returns:
Exception or null


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa