|
XBRLAPIA Java API for XBRL |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Identifier
The fragment identifier interface is implemented by any class that is to be used by a SAX content handler to identify fragments. Usage of fragment identifiers requires: 1. implementing the initialisation of the identifier - including setting up any properties specific to the type of identifier being configured. 2. implementing the adjustment of the state of the fragment identifier whenever the end of an element is encountered by the SAX parser. 3. implementing the fragment recognition code. Fragment identifiers are instantiated and initialised by the documentStart event handler in the SAX content handler. Fragment identification and state updating is triggered within the elementStart event handler. Fragment state updating is triggered within the elementEnd event handler.
| Method Summary | |
|---|---|
void |
endElement(String namespaceURI,
String lName,
String qName,
Attributes attrs)
Updates the state of the fragment identifier when the end of an element is parsed. |
ContentHandler |
getContentHandler()
|
ElementState |
getElementState()
|
Loader |
getLoader()
|
void |
processFragment(Fragment fragment,
Attributes attrs)
Set up the fragment index, handle ID metadata for the fragment and add it to the loader. |
void |
setContentHandler(ContentHandler contentHandler)
|
void |
startElement(String namespaceURI,
String lName,
String qName,
Attributes attrs)
Determines if the element starts a new fragment and if so: creates the fragment sets the fragment index stores any ID attributes on the fragment root in the fragment metadata and in the element state object adds the fragment to the loader |
| Method Detail |
|---|
void startElement(String namespaceURI,
String lName,
String qName,
Attributes attrs)
throws XBRLException
namespaceURI - the namespace of the elementlName - the local name of the elementqName - the qname of the elementattrs - the attributes of the element
XBRLException
void endElement(String namespaceURI,
String lName,
String qName,
Attributes attrs)
throws XBRLException
namespaceURI - the namespace of the elementlName - the local name of the elementqName - the qname of the elementattrs - the attributes of the element
XBRLException
void processFragment(Fragment fragment,
Attributes attrs)
throws XBRLException
fragment - The fragment that has been identified.attrs - The attributes of the root element of the fragment.
XBRLExceptionContentHandler getContentHandler()
void setContentHandler(ContentHandler contentHandler)
throws XBRLException
contentHandler - The content handler using the fragment identifier.
XBRLException - if the content handler is null.Loader getLoader()
ElementState getElementState()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||