(if any) is replaced by corresponding DOM tree.
Top-level declarations & definitions are registered as a
current schema infoset items.
Finaly, top-level tree elements (infoset items) are 'Schema' parsed.
The result XMLSchema object is a set (infoset) of objects (top-level
input elements). Object's contents is a tree with nodes corresponding
to low-level element/group decls/refs preceded by node/object
of type SNode containg cardinality info (min/maxOccurs).
Type | Method |
java.lang.Object |
build(java.io.InputStream in,
java.net.URL baseurl)
Build an XMLSchema object |
java.lang.Object |
build(java.io.Reader r,
java.net.URL baseurl)
Build an XMLSchema object |
java.lang.Object |
build(java.lang.String sysId)
Build an XMLSchema object |
java.lang.Object |
build(java.lang.String ns,
java.lang.String sysid)
Build an XMLSchema object |
java.lang.Object |
build(java.lang.String ns,
java.net.URL sysid)
Build an XMLSchema object |
java.lang.Object |
build(java.net.URL schemaurl)
Build an XMLSchema object |
java.lang.Object |
build(XMLDocument[] schemaDoc,
java.net.URL baseurl)
Build XMLSchema from Array of XML documents |
java.lang.Object |
build(XMLDocument doc,
java.lang.String fragment,
java.lang.String ns,
java.net.URL sysid)
Build an XMLSchema object |
java.lang.Object |
build(XMLDocument schemaDoc,
java.net.URL baseurl)
Build XMLSchema from XML document |
java.lang.Object |
getObject()
Returns the schema object. |
void |
setDebugMode(boolean mode)
Sets debug mode. |
void |
setEntityResolver(EntityResolver entResolver)
Set an EntityResolver for resolving imports/include |
void |
setError(XMLError er)
Sets XMLError object. |
void |
setLocale(java.util.Locale locale)
Sets locale for error reporting. |
XSDBuilder
public XSDBuilder()
throws XSDException
- XSDBuilder constructor
setError
public void setError(XMLError er)
- Sets XMLError object.
- Specified by:
- setError in interface ObjectBuilder
- Parameters:
er
- XMLError object
setDebugMode
public void setDebugMode(boolean mode)
- Sets debug mode.
- Parameters:
mode
- boolean
setLocale
public void setLocale(java.util.Locale locale)
- Sets locale for error reporting.
- Specified by:
- setLocale in interface ObjectBuilder
- Parameters:
locale
- Locale object
setEntityResolver
public void setEntityResolver(EntityResolver entResolver)
- Set an EntityResolver for resolving imports/include
- Parameters:
entResolver
- EntityResolver- See Also:
EntityResolver
getObject
public java.lang.Object getObject()
- Returns the schema object.
- Specified by:
- getObject in interface ObjectBuilder
- Returns:
- XMLSchema object.
build
public java.lang.Object build(java.lang.String sysId)
throws java.lang.Exception
- Build an XMLSchema object
- Parameters:
sysId
- Schema location- Returns:
- Object - XMLSchema
- Throws:
- java.lang.Exception - An
Exception
is thrown if Builder fails to build
an XMLSchema object.
build
public java.lang.Object build(java.io.InputStream in,
java.net.URL baseurl)
throws java.lang.Exception
- Build an XMLSchema object
- Parameters:
in
- Inputstream of Schemabaseurl
- URL used to resolve any relative refs.- Returns:
- Object - XMLSchema
- Throws:
- java.lang.Exception - An
Exception
is thrown if Builder fails to build
an XMLSchema object.
build
public java.lang.Object build(java.io.Reader r,
java.net.URL baseurl)
throws java.lang.Exception
- Build an XMLSchema object
- Parameters:
r
- Reader of Schemabaseurl
- URL used to resolve any relative refs.- Returns:
- Object - XMLSchema
- Throws:
- java.lang.Exception - An
Exception
is thrown if Builder fails to build
an XMLSchema object.
build
public java.lang.Object build(java.net.URL schemaurl)
throws java.lang.Exception
- Build an XMLSchema object
- Parameters:
url
- URL of Schema- Returns:
- Object - XMLSchema
- Throws:
- java.lang.Exception - An
Exception
is thrown if Builder fails to build
an XMLSchema object.
build
public java.lang.Object build(XMLDocument schemaDoc,
java.net.URL baseurl)
throws java.lang.Exception
- Build XMLSchema from XML document
- Parameters:
schemaDoc
- XMLDocumentbaseurl
- base URL to be use for any import/include in document- Returns:
- Object - XMLSchema
- Throws:
- java.lang.Exception - An
Exception
is thrown if Builder fails to build
an XMLSchema object.
build
public java.lang.Object build(XMLDocument[] schemaDoc,
java.net.URL baseurl)
throws java.lang.Exception
- Build XMLSchema from Array of XML documents
- Parameters:
schemaDoc
- Array of XMLDocumentbaseurl
- base URL to be use for any import/include in document- Returns:
- Object - XMLSchema
- Throws:
- java.lang.Exception - An
Exception
is thrown if Builder fails to build
an XMLSchema object.
build
public java.lang.Object build(XMLDocument doc,
java.lang.String fragment,
java.lang.String ns,
java.net.URL sysid)
throws java.lang.Exception
- Build an XMLSchema object
- Specified by:
- build in interface ObjectBuilder
- Parameters:
doc
- XMLdocument contain the schema elementfragment
- Fragment ID of the schema elementns
- Schema target namespace used to validate targetNamespacesysId
- Schema location- Returns:
- Object XMLSchema
- Throws:
- java.lang.Exception - An
Exception
is thrown if Builder fails to build
an XMLSchema object.
build
public java.lang.Object build(java.lang.String ns,
java.lang.String sysid)
throws java.lang.Exception
- Build an XMLSchema object
- Parameters:
ns
- Schema target namespace used to validate targetNamespacesysId
- Schema location- Returns:
- Object XMLSchema
- Throws:
- java.lang.Exception - An
Exception
is thrown if Builder fails to build
an XMLSchema object.
build
public java.lang.Object build(java.lang.String ns,
java.net.URL sysid)
throws java.lang.Exception
- Build an XMLSchema object
- Specified by:
- build in interface ObjectBuilder
- Parameters:
ns
- Schema target namespace used to validate targetNamespacesysId
- URL Schema location- Returns:
- Object XMLSchema
- Throws:
- java.lang.Exception - An
Exception
is thrown if Builder fails to build
an XMLSchema object.