|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbind.xml.schema.element.SchemaParser
| Constructor Summary | |
SchemaParser(org.xml.sax.EntityResolver anEntityResolver,
IXPathFactory anXPathFactory,
IRegExFactory aRegExFactory)
|
|
| Method Summary | |
IRegEx |
createRegEx(java.lang.String aRegEx)
|
IXPath |
createXPath(java.lang.String anXPath,
java.util.Map aPrefixMappings,
boolean aRestrictedForm)
Creates an XPath. |
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. |
boolean |
error(IMessage aMessage)
Signals an error. |
void |
exception(java.lang.Exception anException,
org.xml.sax.InputSource anInputSource)
Signals that an exception occured. |
void |
fatalError(IMessage aMessage)
Signals a fatal error. |
ISchemaDocument |
getDocument()
|
ISchemaElement |
parseSchema(java.net.URL anUrl,
ISchemaElement aParent)
Parses a schema doucment. |
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. |
boolean |
warning(IMessage aMessage)
Signals a warning. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SchemaParser(org.xml.sax.EntityResolver anEntityResolver,
IXPathFactory anXPathFactory,
IRegExFactory aRegExFactory)
| Method Detail |
public ISchemaElement parseSchema(java.net.URL anUrl,
ISchemaElement aParent)
throws XmlException
ISchemaParser
parseSchema in interface ISchemaParseranUrl - (required).aParent - (optional).
XmlExceptionpublic ISchemaDocument getDocument()
public void startDocument(org.xml.sax.InputSource anInputSource,
INamespaceContext aNamespaceContext)
IContentHandler
startDocument in interface IContentHandleranInputSource - (required).aNamespaceContext - (required).
public void endDocument(org.xml.sax.InputSource anInputSource,
INamespaceContext aNamespaceContext)
IContentHandler
endDocument in interface IContentHandleranInputSource - (required).aNamespaceContext - (required).
public void startElement(QualifiedName aQName,
java.util.Map anAttributes,
int aLine,
int aColumn,
org.xml.sax.InputSource anInputSource,
INamespaceContext aNamespaceContext)
throws java.lang.Exception
IContentHandler
startElement in interface IContentHandleraQName - (required). The name of the element.anAttributes - (required). Maps IQNames to
AttributeData.aLine - The current line.aColumn - The current column.anInputSource - (required).aNamespaceContext - (required).
java.lang.Exception
public void endElement(QualifiedName aQName,
java.util.Map anAttributes,
int aLine,
int aColumn,
org.xml.sax.InputSource anInputSource,
INamespaceContext aNamespaceContext)
throws java.lang.Exception
IContentHandler
endElement in interface IContentHandleraQName - (required). The name of the element.anAttributes - (required). Maps IQNames to
AttributeData.aLine - The current line.aColumn - The current column.anInputSource - (required).aNamespaceContext - (required).
java.lang.Exception
public void text(java.lang.String aString,
int aLine,
int aColumn,
org.xml.sax.InputSource anInputSource,
INamespaceContext aNamespaceContext)
throws java.lang.Exception
IContentHandler
text in interface IContentHandleraString - (required).aLine - The current line.aColumn - The current column.anInputSource - (required).aNamespaceContext - (required).
java.lang.Exception
public void startXInclude(java.lang.String aParseMethod,
java.net.URL aUrl,
java.lang.String aFragementId)
IContentHandler
startXInclude in interface IContentHandleraParseMethod - (required). There are 3 possible values:
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.public void endXInclude()
IContentHandler
endXInclude in interface IContentHandler
public IRegEx createRegEx(java.lang.String aRegEx)
throws java.lang.Exception
createRegEx in interface IRegExFactoryjava.lang.Exception
public IXPath createXPath(java.lang.String anXPath,
java.util.Map aPrefixMappings,
boolean aRestrictedForm)
throws java.lang.Exception
IXPathFactory
createXPath in interface IXPathFactoryanXPath - (required).aPrefixMappings - (required). Maps namespace prefixes to namespace
strings.aRestrictedForm - Determines if only the restricted form of XPaths
of the XML schema specification is allowed or if unrestricted XPaths are allowed.
java.lang.Exceptionpublic void fatalError(IMessage aMessage)
IErrorHandler
fatalError in interface IErrorHandleraMessage - (required).public boolean error(IMessage aMessage)
IErrorHandler
error in interface IErrorHandleraMessage - (required).
true is returned then the parsing is aborted
otherwise the parsing is continued.public boolean warning(IMessage aMessage)
IErrorHandler
warning in interface IErrorHandleraMessage - (required).
true is returned then the parsing is aborted
otherwise the parsing is continued.
public void exception(java.lang.Exception anException,
org.xml.sax.InputSource anInputSource)
IErrorHandler
exception in interface IErrorHandleranException - (required).anInputSource - (required). The source that is parsed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||