org.jbind.xml.parser
Interface IContentHandler

All Known Implementing Classes:
ImplBuilder, SchemaParser

public interface IContentHandler

Low level content handler for XML documents.


Method Summary
 void endDocument(org.xml.sax.InputSource anInputSource, INamespaceContext aNamespaceContext)
          Signals the end of a document.
 void endElement(QualifiedName aQName, java.util.Map anAttributes, int aLine, int aColumn, org.xml.sax.InputSource anInputSource, INamespaceContext aNamespaceContext)
          Signals the end of an element.
 void endXInclude()
          Signals the end of an XInclude.
 void startDocument(org.xml.sax.InputSource anInputSource, INamespaceContext aNamespaceContext)
          Signals the start of a document.
 void startElement(QualifiedName aQName, java.util.Map anAttributes, int aLine, int aColumn, org.xml.sax.InputSource anInputSource, INamespaceContext aNamespaceContext)
          Signals the start of an element.
 void startXInclude(java.lang.String aParseMethod, java.net.URL aUrl, java.lang.String aFragementId)
          Signals that an XInclude started.
 void text(java.lang.String aString, int aLine, int aColumn, org.xml.sax.InputSource anInputSource, INamespaceContext aNamespaceContext)
          Signals text.
 

Method Detail

startDocument

public void startDocument(org.xml.sax.InputSource anInputSource,
                          INamespaceContext aNamespaceContext)
                   throws java.lang.Exception
Signals the start of a document.

Parameters:
anInputSource - (required).
aNamespaceContext - (required).
Throws:
java.lang.Exception

endDocument

public void endDocument(org.xml.sax.InputSource anInputSource,
                        INamespaceContext aNamespaceContext)
                 throws java.lang.Exception
Signals the end of a document.

Parameters:
anInputSource - (required).
aNamespaceContext - (required).
Throws:
java.lang.Exception

startElement

public void startElement(QualifiedName aQName,
                         java.util.Map anAttributes,
                         int aLine,
                         int aColumn,
                         org.xml.sax.InputSource anInputSource,
                         INamespaceContext aNamespaceContext)
                  throws java.lang.Exception
Signals the start of an element.

Parameters:
aQName - (required). The name of the element.
anAttributes - (required). Maps IQNames to AttributeData.
aLine - The current line.
aColumn - The current column.
anInputSource - (required).
aNamespaceContext - (required).
Throws:
java.lang.Exception

endElement

public void endElement(QualifiedName aQName,
                       java.util.Map anAttributes,
                       int aLine,
                       int aColumn,
                       org.xml.sax.InputSource anInputSource,
                       INamespaceContext aNamespaceContext)
                throws java.lang.Exception
Signals the end of an element.

Parameters:
aQName - (required). The name of the element.
anAttributes - (required). Maps IQNames to AttributeData.
aLine - The current line.
aColumn - The current column.
anInputSource - (required).
aNamespaceContext - (required).
Throws:
java.lang.Exception

text

public void text(java.lang.String aString,
                 int aLine,
                 int aColumn,
                 org.xml.sax.InputSource anInputSource,
                 INamespaceContext aNamespaceContext)
          throws java.lang.Exception
Signals text.

Parameters:
aString - (required).
aLine - The current line.
aColumn - The current column.
anInputSource - (required).
aNamespaceContext - (required).
Throws:
java.lang.Exception

startXInclude

public void startXInclude(java.lang.String aParseMethod,
                          java.net.URL aUrl,
                          java.lang.String aFragementId)
Signals that an XInclude started.

Parameters:
aParseMethod - (required). There are 3 possible values:
  1. "xml"
  2. "text"
  3. "fallback": This type is used to indicate a content handler that a resource could not be included but that its fallback content is going to be used.
aUrl - (required). The resource that is included or that could not be accessed (in case that the parse method is "fallback"). A content handler may use this URL for example to generate xml:base attributes for included elements.

endXInclude

public void endXInclude()
Signals the end of an XInclude.