|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.framework.xml.XMLFragment org.deegree.framework.xml.schema.XSDocument
public class XSDocument
Parser for XML schema documents.
Field Summary |
---|
Fields inherited from class org.deegree.framework.xml.XMLFragment |
---|
DEFAULT_URL, nsContext, XLNNS |
Constructor Summary | |
---|---|
XSDocument()
|
Method Summary | |
---|---|
ComplexTypeDeclaration[] |
extractComplexTypeDeclarations()
Extracts all global (top-level) complex type declarations from the underlying schema document. |
ElementDeclaration[] |
extractElementDeclarations()
Extracts all global (top-level) element declarations from the underlying schema document. |
SimpleTypeDeclaration[] |
extractSimpleTypeDeclarations()
Extracts all global (top-level) simple type declarations from the underlying schema document. |
org.w3c.dom.Element |
getComplexTypeDeclaration(java.lang.String name)
Returns the root element of the complex type declaration for the given name. |
protected java.lang.String |
getFullName(java.lang.String localName)
Prepends the prefix of the RootElement to the given local name. |
java.net.URI |
getTargetNamespace()
Returns the target namespace of the underlying schema document. |
protected ComplexTypeDeclaration |
parseComplexTypeDeclaration(org.w3c.dom.Element element)
Parses the given Element as an 'xs:complexType' declaration. |
protected ElementDeclaration |
parseElementDeclaration(org.w3c.dom.Element element)
Parses the given Element as an 'xs:element' declaration. |
protected SimpleTypeDeclaration |
parseSimpleTypeDeclaration(org.w3c.dom.Element element)
Parses the given Element as an 'xs:simpleType' declaration. |
XMLSchema |
parseXMLSchema()
Returns the class representation of the underlying schema document. |
Methods inherited from class org.deegree.framework.xml.XMLFragment |
---|
getAsPrettyString, getAsString, getAttachedSchemas, getQualifiedName, getRootElement, getSystemId, hasSchema, load, load, load, parseQualifiedName, parseSimpleLink, prettyPrint, prettyPrint, resolve, setRootElement, setSystemId, setSystemId, toString, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XSDocument()
Method Detail |
---|
public XMLSchema parseXMLSchema() throws XMLParsingException, XMLSchemaException
XMLParsingException
XMLSchemaException
public java.net.URI getTargetNamespace() throws XMLParsingException
XMLParsingException
public SimpleTypeDeclaration[] extractSimpleTypeDeclarations() throws XMLParsingException
XMLParsingException
- if the document is not a valid XML Schema document or does not match the
limitations of this classpublic ComplexTypeDeclaration[] extractComplexTypeDeclarations() throws XMLParsingException
XMLParsingException
- if the document is not a valid XML Schema document or does not match the
limitations of this classpublic ElementDeclaration[] extractElementDeclarations() throws XMLParsingException
XMLParsingException
- if the document is not a valid XML Schema document or does not match the
limitations of this classpublic org.w3c.dom.Element getComplexTypeDeclaration(java.lang.String name)
name
- the name of the complex type declaration to look up (w/o namespace)
protected ElementDeclaration parseElementDeclaration(org.w3c.dom.Element element) throws XMLParsingException
Element
as an 'xs:element' declaration.
element
- 'xs:element' declaration to be parsed
XMLParsingException
- if the document is not a valid XML Schema document or does not match the
limitations of this classprotected SimpleTypeDeclaration parseSimpleTypeDeclaration(org.w3c.dom.Element element) throws XMLParsingException
Element
as an 'xs:simpleType' declaration.
The following limitations apply:
element
- 'xs:simpleType' declaration to be parsed
XMLParsingException
- if the document is not a valid XML Schema document or does not match the
limitations of this classprotected ComplexTypeDeclaration parseComplexTypeDeclaration(org.w3c.dom.Element element) throws XMLParsingException
Element
as an 'xs:complexType' declaration.
element
- 'xs:complexType' declaration to be parsed
XMLParsingException
- if the document is not a valid XML Schema document or does not match the
limitations of this classprotected java.lang.String getFullName(java.lang.String localName)
If the prefix of the RootElement is empty, "xs:" is prepended.
localName
- to this the prefix will be prepended
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org