public class ContentHandlerImpl extends BaseContentHandlerImpl implements ContentHandler
Constructor and Description |
---|
ContentHandlerImpl(Loader loader,
java.net.URI uri)
Creates the content handler, starting out by
identifying the DTS structure that the content
handler is discovering.
|
ContentHandlerImpl(Loader loader,
java.net.URI uri,
java.lang.String xml)
Creates the content handler, starting out by
identifying the data structure that the content
handler is discovering.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] buf,
int offset,
int len)
Copy characters (trimming white space as required) to the DTSImpl.
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName)
The end of an element triggers processing of an extended link
if we have reached the end of an extended link.
|
void |
ignorableWhitespace(char[] buf,
int offset,
int len)
Ignore ignorable whitespace
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Copy across processing instructions to the DTSImpl
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
The locator for a document is stored to facilitate resolution
of CacheURIImpl's relative to that location.
|
void |
startDocument()
On starting to parse a document the Base URI resolver is
set up with the documents absolute URI.
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
Sets the element state.
|
error, fatalError, getElementState, getIdentifiers, getLoader, getURI, setElementState, setLoader, setURI, warning
endDocument, endPrefixMapping, notationDecl, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
error, fatalError, getElementState, getIdentifiers, getLoader, getURI, setElementState, setLoader, setURI, warning
public ContentHandlerImpl(Loader loader, java.net.URI uri) throws XBRLException
loader
- The DTS loader that is using this content handler.uri
- The URI of the document being parsed.XBRLException
- if any of the parameters
are null.public ContentHandlerImpl(Loader loader, java.net.URI uri, java.lang.String xml) throws XBRLException
loader
- The data loader that is using this content handler.uri
- The URI of the document being parsed.xml
- The string representation of the XML document being parsed.XBRLException
- if any of the parameters
are null.public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
ContentHandler.startElement(String, String, String, Attributes)
public void endElement(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] buf, int offset, int len) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
ignorableWhitespace
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
processingInstruction
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void characters(char[] buf, int offset, int len) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler