| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.  | 
 Element | 
getComplexTypeDeclaration(String name)
Returns the root element of the complex type declaration for the given name.  | 
protected  String | 
getFullName(String localName)
Prepends the prefix of the RootElement to the given local name.  | 
 URI | 
getTargetNamespace()
Returns the target namespace of the underlying schema document.  | 
protected  ComplexTypeDeclaration | 
parseComplexTypeDeclaration(Element element)
Parses the given Element as an 'xs:complexType' declaration. | 
protected  ElementDeclaration | 
parseElementDeclaration(Element element)
Parses the given Element as an 'xs:element' declaration. | 
protected  SimpleTypeDeclaration | 
parseSimpleTypeDeclaration(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 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 class
public ComplexTypeDeclaration[] extractComplexTypeDeclarations()
                                                        throws XMLParsingException
XMLParsingException - if the document is not a valid XML Schema document or does not match the
             limitations of this class
public ElementDeclaration[] extractElementDeclarations()
                                                throws XMLParsingException
XMLParsingException - if the document is not a valid XML Schema document or does not match the
             limitations of this classpublic Element getComplexTypeDeclaration(String name)
name - the name of the complex type declaration to look up (w/o namespace)
protected ElementDeclaration parseElementDeclaration(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 class
protected SimpleTypeDeclaration parseSimpleTypeDeclaration(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 class
protected ComplexTypeDeclaration parseComplexTypeDeclaration(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 String getFullName(String localName)
If the prefix of the RootElement is empty, "xs:" is prepended.
localName - to this the prefix will be prepended
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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