XBRLAPI

A Java API for XBRL


org.xbrlapi.sax.identifiers
Class XBRLIdentifier

java.lang.Object
  extended by org.xbrlapi.sax.identifiers.BaseIdentifier
      extended by org.xbrlapi.sax.identifiers.XBRLIdentifier
All Implemented Interfaces:
Identifier

public class XBRLIdentifier
extends BaseIdentifier
implements Identifier

Identifies fragments in the XBRL 2.1 namespace.

Author:
Geoffrey Shuetrim (geoff@galexy.net)

Field Summary
 
Fields inherited from class org.xbrlapi.sax.identifiers.BaseIdentifier
logger
 
Constructor Summary
XBRLIdentifier(ContentHandler contentHandler)
           
 
Method Summary
 void endElement(String namespaceURI, String lName, String qName, Attributes attrs)
          Set the boolean state variables based upon whether the next element can be a tuple in an XBRL instance and whether the parser is within an XBRL instance and whether the parser is within a reference resource.
 void startElement(String namespaceURI, String lName, String qName, Attributes attrs)
          Finds fragments in the XBRL 2.1 namespace and keeps track of boolean state variables tracking whether the parser is inside and XBRL instance and whether the current element can be a tuple in an XBRL instance.
 
Methods inherited from class org.xbrlapi.sax.identifiers.BaseIdentifier
getContentHandler, getElementState, getLoader, processFragment, setContentHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xbrlapi.sax.identifiers.Identifier
getContentHandler, getElementState, getLoader, processFragment, setContentHandler
 

Constructor Detail

XBRLIdentifier

public XBRLIdentifier(ContentHandler contentHandler)
               throws XBRLException
Throws:
XBRLException
See Also:
BaseIdentifier.BaseIdentifier(ContentHandler)
Method Detail

startElement

public void startElement(String namespaceURI,
                         String lName,
                         String qName,
                         Attributes attrs)
                  throws XBRLException
Finds fragments in the XBRL 2.1 namespace and keeps track of boolean state variables tracking whether the parser is inside and XBRL instance and whether the current element can be a tuple in an XBRL instance.

Specified by:
startElement in interface Identifier
Overrides:
startElement in class BaseIdentifier
Parameters:
namespaceURI - the namespace of the element
lName - the local name of the element
qName - the qname of the element
attrs - the attributes of the element
Throws:
XBRLException
See Also:
BaseIdentifier.startElement(String,String,String,Attributes)

endElement

public void endElement(String namespaceURI,
                       String lName,
                       String qName,
                       Attributes attrs)
                throws XBRLException
Set the boolean state variables based upon whether the next element can be a tuple in an XBRL instance and whether the parser is within an XBRL instance and whether the parser is within a reference resource.

Specified by:
endElement in interface Identifier
Overrides:
endElement in class BaseIdentifier
Parameters:
namespaceURI - the namespace of the element
lName - the local name of the element
qName - the qname of the element
attrs - the attributes of the element
Throws:
XBRLException
See Also:
Identifier.endElement(String, String, String, Attributes)

Get Java XBRL API implementation at SourceForge.net.