deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.framework.xml.schema
Class XMLSchema

java.lang.Object
  extended by org.deegree.framework.xml.schema.XMLSchema
Direct Known Subclasses:
GMLSchema

public class XMLSchema
extends Object

Represents an XML schema document.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Constructor Summary
XMLSchema(URI targetNamespace, SimpleTypeDeclaration[] simpleTypes, ComplexTypeDeclaration[] complexTypes, ElementDeclaration[] elementDeclarations)
          Creates a new XMLSchema instance from the given parameters.
 
Method Summary
 ComplexTypeDeclaration getComplexTypeDeclaration(QualifiedName qName)
          Looks up the ComplexTypeDeclaration for the given QualifiedName.
 ComplexTypeDeclaration getComplexTypeDeclaration(String name)
          Looks up the ComplexTypeDeclaration for the given local name (without namespace).
 ComplexTypeDeclaration[] getComplexTypeDeclarations()
          Returns all ComplexTypeDeclarations that are defined in the schema.
 ElementDeclaration getElementDeclaration(QualifiedName qName)
          Looks up the ElementDeclaration for the given QualifiedName.
 ElementDeclaration getElementDeclaration(String name)
          Looks up the ElementDeclaration for the given local name (without namespace).
 ElementDeclaration[] getElementDeclarations()
          Returns all ElementDeclarations that are defined in the schema.
 SimpleTypeDeclaration getSimpleTypeDeclaration(QualifiedName qName)
          Looks up the SimpleTypeDeclaration for the given QualifiedName.
 SimpleTypeDeclaration getSimpleTypeDeclaration(String name)
          Looks up the SimpleTypeDeclaration for the given local name (without namespace).
 SimpleTypeDeclaration[] getSimpleTypeDeclarations()
          Returns all SimpleTypeDeclarations that are defined in the schema.
 URI getTargetNamespace()
          Returns the target namespace of the schema document.
 TypeDeclaration getTypeDeclaration(QualifiedName qName)
          Looks up the TypeDeclaration for the given QualifiedName.
 TypeDeclaration getTypeDeclaration(String name)
          Looks up the TypeDeclaration for the given local name (without namespace).
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLSchema

public XMLSchema(URI targetNamespace,
                 SimpleTypeDeclaration[] simpleTypes,
                 ComplexTypeDeclaration[] complexTypes,
                 ElementDeclaration[] elementDeclarations)
          throws XMLSchemaException
Creates a new XMLSchema instance from the given parameters.

Parameters:
targetNamespace -
simpleTypes -
complexTypes -
elementDeclarations -
Throws:
XMLSchemaException
Method Detail

getTargetNamespace

public URI getTargetNamespace()
Returns the target namespace of the schema document.

Returns:
the target namespace

getElementDeclarations

public ElementDeclaration[] getElementDeclarations()
Returns all ElementDeclarations that are defined in the schema.

Returns:
all ElementDeclarations that are defined in the schema

getSimpleTypeDeclarations

public SimpleTypeDeclaration[] getSimpleTypeDeclarations()
Returns all SimpleTypeDeclarations that are defined in the schema.

Returns:
all SimpleTypeDeclarations that are defined in the schema

getComplexTypeDeclarations

public ComplexTypeDeclaration[] getComplexTypeDeclarations()
Returns all ComplexTypeDeclarations that are defined in the schema.

Returns:
all ComplexTypeDeclarations that are defined in the schema

getElementDeclaration

public ElementDeclaration getElementDeclaration(QualifiedName qName)
Looks up the ElementDeclaration for the given QualifiedName.

Parameters:
qName - the QualifiedName to look up
Returns:
the ElementDeclaration, if an element with the given name is defined in the schema, null otherwise

getTypeDeclaration

public TypeDeclaration getTypeDeclaration(QualifiedName qName)
Looks up the TypeDeclaration for the given QualifiedName.

Parameters:
qName - the QualifiedName to look up
Returns:
the TypeDeclaration, if a type with the given name is defined in the schema, null otherwise

getSimpleTypeDeclaration

public SimpleTypeDeclaration getSimpleTypeDeclaration(QualifiedName qName)
Looks up the SimpleTypeDeclaration for the given QualifiedName.

Parameters:
qName - the QualifiedName to look up
Returns:
the SimpleTypeDeclaration, if a simple type with the given name is defined in the schema, null otherwise

getComplexTypeDeclaration

public ComplexTypeDeclaration getComplexTypeDeclaration(QualifiedName qName)
Looks up the ComplexTypeDeclaration for the given QualifiedName.

Parameters:
qName - the QualifiedName to look up
Returns:
the ComplexTypeDeclaration, if a complex type with the given name is defined in the schema, null otherwise

getElementDeclaration

public ElementDeclaration getElementDeclaration(String name)
Looks up the ElementDeclaration for the given local name (without namespace).

Parameters:
name - the (unqualified) name to look up
Returns:
the ElementDeclaration, if an element with the given name is defined in the schema, null otherwise

getTypeDeclaration

public TypeDeclaration getTypeDeclaration(String name)
Looks up the TypeDeclaration for the given local name (without namespace).

Parameters:
name - the (unqualified) name to look up
Returns:
the TypeDeclaration, if a type with the given name is defined in the schema, null otherwise

getSimpleTypeDeclaration

public SimpleTypeDeclaration getSimpleTypeDeclaration(String name)
Looks up the SimpleTypeDeclaration for the given local name (without namespace).

Parameters:
name - the (unqualified) name to look up
Returns:
the SimpleTypeDeclaration, if a simple type with the given name is defined in the schema, null otherwise

getComplexTypeDeclaration

public ComplexTypeDeclaration getComplexTypeDeclaration(String name)
Looks up the ComplexTypeDeclaration for the given local name (without namespace).

Parameters:
name - the (unqualified) name to look up
Returns:
the ComplexTypeDeclaration, if a complex type with the given name is defined in the schema, null otherwise

toString

public String toString()
Overrides:
toString in class Object

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org