org.apache.woden.internal.wsdl20
Class TypesImpl

java.lang.Object
  extended by org.apache.woden.internal.wsdl20.WSDLElementImpl
      extended by org.apache.woden.internal.wsdl20.WSDLObjectImpl
          extended by org.apache.woden.internal.wsdl20.DocumentableImpl
              extended by org.apache.woden.internal.wsdl20.TypesImpl
All Implemented Interfaces:
AttributeExtensible, ElementExtensible, WSDLComponent, DocumentableElement, NestedElement, TypesElement, WSDLElement

public class TypesImpl
extends DocumentableImpl
implements TypesElement

This class represents the WSDL <types> element. TODO consider methods to get directly declared schemas vs getting all 'in-scope' schemas from the wsdl tree.

Author:
jkaputin@apache.org

Constructor Summary
TypesImpl()
           
 
Method Summary
 void addSchema(Schema schema)
          Add a Schema object for a schema inlined or imported within the <types> element.
 org.apache.ws.commons.schema.XmlSchemaElement getElementDeclaration(QName qname)
           
 ImportedSchema[] getImportedSchemas()
          Return the schemas imported directly by this <types> element in the order in which they occur.
 InlinedSchema[] getInlinedSchemas()
          Return the schemas inlined directly within this <types> element in the order in which they occur.
 WSDLElement getParentElement()
           
 Schema[] getSchemas()
          Return the schemas inlined or imported directly within this <types> element.
 Schema[] getSchemas(java.net.URI namespace)
          Return the schemas inlined or imported directly within this <types> element whose target namespace matches the specified namespace.
 org.apache.ws.commons.schema.XmlSchemaType getTypeDefinition(QName qname)
           
 java.lang.String getTypeSystem()
          Get the string indicating the type system used within the <types> element.
 void removeSchema(Schema schema)
          Delete the specified Schema object.
 void setParentElement(WSDLElement parent)
           
 void setTypeSystem(java.lang.String typeSystem)
          Indicates the type system used within the <types> element.
 
Methods inherited from class org.apache.woden.internal.wsdl20.DocumentableImpl
addDocumentationElement, getDocumentationElements
 
Methods inherited from class org.apache.woden.internal.wsdl20.WSDLObjectImpl
containsComponent, equals, getComponentExtensionsForNamespace, setComponentExtensions
 
Methods inherited from class org.apache.woden.internal.wsdl20.WSDLElementImpl
addExtensionElement, getExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, getExtensionElements, getExtensionElementsOfType, hasExtensionAttributesForNamespace, hasExtensionElementsForNamespace, removeExtensionElement, setExtensionAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.woden.wsdl20.xml.DocumentableElement
addDocumentationElement, getDocumentationElements
 
Methods inherited from interface org.apache.woden.wsdl20.extensions.AttributeExtensible
getExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, hasExtensionAttributesForNamespace, setExtensionAttribute
 
Methods inherited from interface org.apache.woden.wsdl20.extensions.ElementExtensible
addExtensionElement, getExtensionElements, getExtensionElementsOfType, hasExtensionElementsForNamespace, removeExtensionElement
 

Constructor Detail

TypesImpl

public TypesImpl()
Method Detail

setTypeSystem

public void setTypeSystem(java.lang.String typeSystem)
Description copied from interface: TypesElement
Indicates the type system used within the <types> element. Typically the W3C XML Schema type system will be used, indicated by the namespace "http://www.w3.org/2001/XMLSchema". An alternative schema-like type system is Relax NG (http://www.relaxng.org/).

Specified by:
setTypeSystem in interface TypesElement

getTypeSystem

public java.lang.String getTypeSystem()
Description copied from interface: TypesElement
Get the string indicating the type system used within the <types> element.

Specified by:
getTypeSystem in interface TypesElement

addSchema

public void addSchema(Schema schema)
Description copied from interface: TypesElement
Add a Schema object for a schema inlined or imported within the <types> element.

Specified by:
addSchema in interface TypesElement
Parameters:
schema - the Schema object.

removeSchema

public void removeSchema(Schema schema)
Description copied from interface: TypesElement
Delete the specified Schema object.

Specified by:
removeSchema in interface TypesElement

getSchemas

public Schema[] getSchemas()
Description copied from interface: TypesElement
Return the schemas inlined or imported directly within this <types> element.

Specified by:
getSchemas in interface TypesElement
Returns:
an array of Schema objects

getSchemas

public Schema[] getSchemas(java.net.URI namespace)
Description copied from interface: TypesElement
Return the schemas inlined or imported directly within this <types> element whose target namespace matches the specified namespace.

A null namespace argument will return schemas that have no target namespace.

Specified by:
getSchemas in interface TypesElement
Returns:
an array of Schema objects with the specified target namespace.

getInlinedSchemas

public InlinedSchema[] getInlinedSchemas()
Description copied from interface: TypesElement
Return the schemas inlined directly within this <types> element in the order in which they occur.

Specified by:
getInlinedSchemas in interface TypesElement
Returns:
an array of Schema objects.

getImportedSchemas

public ImportedSchema[] getImportedSchemas()
Description copied from interface: TypesElement
Return the schemas imported directly by this <types> element in the order in which they occur.

Specified by:
getImportedSchemas in interface TypesElement
Returns:
an array of Schema objects.

setParentElement

public void setParentElement(WSDLElement parent)
Specified by:
setParentElement in interface NestedElement

getParentElement

public WSDLElement getParentElement()
Specified by:
getParentElement in interface NestedElement

getElementDeclaration

public org.apache.ws.commons.schema.XmlSchemaElement getElementDeclaration(QName qname)

getTypeDefinition

public org.apache.ws.commons.schema.XmlSchemaType getTypeDefinition(QName qname)


Copyright © 2007. All Rights Reserved.