|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.jaxme.xs.impl.XSLogicalParser
public class XSLogicalParser
Implementation of a logical parser.
Nested Class Summary | |
---|---|
static class |
XSLogicalParser.AddedImport
|
Constructor Summary | |
---|---|
XSLogicalParser()
|
Method Summary | |
---|---|
protected void |
add(XsESchema pSyntaxSchema,
java.lang.Object pChild)
Adds the given object to the schema. |
void |
addImport(java.lang.String pNamespace,
org.w3c.dom.Node pSchema)
Adds a schema being imported by the parser. |
void |
addImport(java.lang.String pNamespace,
java.lang.String pSchemaLocation)
Adds a schema being imported by the parser. |
protected void |
addSyntaxSchema(XsESchema pSyntaxSchema)
|
protected void |
clearSyntaxSchemas()
|
protected void |
createSubstitutionGroups(XSSchema pSchema)
|
XSLogicalParser.AddedImport[] |
getAddedImports()
Returns the array of added imports, typically empty. |
XsESchema |
getCurrentSyntaxSchema()
Returns the syntax schema, which is currently being parsed. |
protected XSContext |
getData()
|
protected org.xml.sax.InputSource |
getInputSource(java.lang.String pReferencingSystemId,
java.lang.String pURI)
Converts the given URI into an instance of InputSource. |
XSSchema |
getSchema()
Returns the schema, which is currently being parsed. |
XsESchema[] |
getSyntaxSchemas()
Provides context information to the schema which is currently being parsed. |
XSContentHandler |
getXSContentHandler()
This is the logical parsers frontend for parsing a stream of SAX events. |
protected void |
importSchema(XsESchema pImportingSchema,
java.lang.String pNamespace,
org.w3c.dom.Node pNode)
|
protected void |
importSchema(XsESchema pImportingSchema,
java.lang.String pNamespace,
java.lang.String pSchemaLocation,
org.xml.sax.Locator pLocator)
Handles xs:import. |
protected void |
includeSchema(XsESchema pIncludingSchema,
XsEInclude pInclude)
Handles xs:include. |
boolean |
isValidating()
Returns whether the parser is validating. |
XSSchema |
parse(org.xml.sax.InputSource pSource)
This is the logical parsers frontend for parsing the given InputSource . |
XSSchema |
parse(org.w3c.dom.Node pNode)
This is the logical parsers frontend for parsing a DOM node. |
protected void |
parse(XsESchema pSyntaxSchema)
Parses the given InputSource syntactically and
converts the objects that it finds into logical objects. |
protected XsESchema |
parseSyntax(org.xml.sax.InputSource pSource)
|
protected XsESchema |
parseSyntax(org.w3c.dom.Node pNode)
|
protected void |
redefine(XsESchema pSyntaxSchema,
XsERedefine pRedefine,
XsRedefinable pChild)
Redefines the given XsRedefinable . |
protected void |
redefineSchema(XsESchema pRedefiningSchema,
XsERedefine pRedefine)
Handles xs:refefine. |
protected void |
removeSyntaxSchema()
|
protected void |
setSchema(XSSchema pSchema)
Sets the schema, which is currently being parsed. |
void |
setValidating(boolean pValidating)
Sets whether the parser is validating. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSLogicalParser()
Method Detail |
---|
protected XSContext getData()
public void setValidating(boolean pValidating)
Sets whether the parser is validating.
public boolean isValidating()
Returns whether the parser is validating.
public void addImport(java.lang.String pNamespace, java.lang.String pSchemaLocation)
Adds a schema being imported by the parser. This feature is useful, if a schema silently assumes the presence of additional datatypes. For example, a WSDL definition will contain references to SOAP datatypes without explicit import.
In practice, the declaration will silently create an "xs:import" node.
pNamespace
- Matches the "xs:import" nodes "namespace" attribute.
In particular it may be null, in which case the imported schema may
not have a targetNamespace.pSchemaLocation
- Matches the "xs:import" nodes "schemaLocation"
attribute. In particular it may be null.public void addImport(java.lang.String pNamespace, org.w3c.dom.Node pSchema)
Adds a schema being imported by the parser. The schema is provided as a DOM node. This feature is useful, if a schema silently assumes the presence of additional datatypes. For example, a WSDL definition will contain references to SOAP datatypes without explicit import.
pNamespace
- Matches the "xs:import" nodes "namespace"
attribute. In particular it may be null, in which case the
imported schema may not have a targetNamespace.pSchema
- A DOM node with the schema being imported.public XSLogicalParser.AddedImport[] getAddedImports()
Returns the array of added imports, typically empty.
public XSSchema getSchema()
Returns the schema, which is currently being parsed.
protected void setSchema(XSSchema pSchema)
Sets the schema, which is currently being parsed.
protected XsESchema parseSyntax(org.w3c.dom.Node pNode) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected XsESchema parseSyntax(org.xml.sax.InputSource pSource) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
protected org.xml.sax.InputSource getInputSource(java.lang.String pReferencingSystemId, java.lang.String pURI) throws java.io.IOException
Converts the given URI into an instance of InputSource.
java.io.IOException
protected void redefine(XsESchema pSyntaxSchema, XsERedefine pRedefine, XsRedefinable pChild) throws org.xml.sax.SAXException
Redefines the given XsRedefinable
.
org.xml.sax.SAXException
protected void add(XsESchema pSyntaxSchema, java.lang.Object pChild) throws org.xml.sax.SAXException
Adds the given object to the schema.
org.xml.sax.SAXException
protected void redefineSchema(XsESchema pRedefiningSchema, XsERedefine pRedefine) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
Handles xs:refefine.
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
protected void includeSchema(XsESchema pIncludingSchema, XsEInclude pInclude) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
Handles xs:include.
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
protected void importSchema(XsESchema pImportingSchema, java.lang.String pNamespace, java.lang.String pSchemaLocation, org.xml.sax.Locator pLocator) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
Handles xs:import.
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
protected void importSchema(XsESchema pImportingSchema, java.lang.String pNamespace, org.w3c.dom.Node pNode) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
protected void parse(XsESchema pSyntaxSchema) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
Parses the given InputSource
syntactically and
converts the objects that it finds into logical objects.
These logical objects are added to the given XSSchema
.
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
protected void createSubstitutionGroups(XSSchema pSchema) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public XSContentHandler getXSContentHandler() throws org.xml.sax.SAXException
This is the logical parsers frontend for parsing a stream of SAX events.
org.xml.sax.SAXException
public XSSchema parse(org.w3c.dom.Node pNode) throws org.xml.sax.SAXException
This is the logical parsers frontend for parsing a DOM node.
org.xml.sax.SAXException
public XSSchema parse(org.xml.sax.InputSource pSource) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
This is the logical parsers frontend for parsing the given
InputSource
. If the parsed schema includes or imports other
schemas, they are also parsed and added to the parsers object
tree.
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
getXSContentHandler()
protected void clearSyntaxSchemas()
protected void addSyntaxSchema(XsESchema pSyntaxSchema)
protected void removeSyntaxSchema()
public XsESchema[] getSyntaxSchemas()
Provides context information to the schema which is currently being parsed. The schema with index 0 is the outermost schema, on which the parser is actually invoked.
public XsESchema getCurrentSyntaxSchema()
Returns the syntax schema, which is currently being parsed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |