deegree 2.5 (2011/06/29 09:44 build-8-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 java.lang.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(java.net.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(java.lang.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(java.lang.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(java.lang.String name)
          Looks up the SimpleTypeDeclaration for the given local name (without namespace).
 SimpleTypeDeclaration[] getSimpleTypeDeclarations()
          Returns all SimpleTypeDeclarations that are defined in the schema.
 java.net.URI getTargetNamespace()
          Returns the target namespace of the schema document.
 TypeDeclaration getTypeDeclaration(QualifiedName qName)
          Looks up the TypeDeclaration for the given QualifiedName.
 TypeDeclaration getTypeDeclaration(java.lang.String name)
          Looks up the TypeDeclaration for the given local name (without namespace).
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLSchema

public XMLSchema(java.net.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 java.net.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

deegree 2.5 (2011/06/29 09:44 build-8-official)

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