org.ow2.easywsdl.schema.api.absItf
Interface AbsItfSchema<T extends AbsItfType,E extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>

All Superinterfaces:
SchemaElement, java.io.Serializable
All Known Subinterfaces:
DefaultSchema, Schema
All Known Implementing Classes:
AbstractSchemaImpl, DefaultSchemaImpl, SchemaImpl

public interface AbsItfSchema<T extends AbsItfType,E extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
extends SchemaElement

Author:
Nicolas Salatge - eBM WebSourcing

Method Summary
 void addAttribute(A attr)
           
 void addElement(E elmt)
           
 void addImport(Impt importDef)
          Add an import to this parent.
 void addInclude(Incl includeDef)
          Add an include to this parent.
 void addType(T absItfType)
           
 A createAttribute()
           
 T createComplexType()
           
 E createElement()
           
 Impt createImport()
          Create an import to this parent.
 Incl createInclude()
          Create an include to this parent.
 T createSimpleType()
           
 java.util.List<E> findElementsInAllSchema(javax.xml.namespace.QName element)
           
 NamespaceMapperImpl getAllNamespaces()
           
 A getAttribute(javax.xml.namespace.QName attr)
           
 FormChoice getAttributeFormDefault()
           
 java.util.List<A> getAttributes()
           
 java.util.List<java.lang.String> getBlockDefault()
           
 java.net.URI getDocumentURI()
           
 E getElement(javax.xml.namespace.QName element)
           
 FormChoice getElementFormDefault()
           
 java.util.List<E> getElements()
           
 java.util.List<java.lang.String> getFinalDefault()
           
 java.util.List<Impt> getImports()
          Get a map of lists containing all the imports defined here.
 java.util.List<Impt> getImports(java.lang.String namespaceURI)
          Get the list of imports for the specified namespaceURI.
 java.util.List<Incl> getIncludes()
          Get a map of lists containing all the includes defined here.
 java.util.List<Incl> getIncludes(java.net.URI locationURI)
          Get the list of includes for the specified locationURI.
 java.lang.String getLang()
           
 java.lang.String getTargetNamespace()
           
 T getType(javax.xml.namespace.QName type)
           
 java.util.List<T> getTypes()
           
 java.lang.String getVersion()
           
 Impt removeImport(Impt importDef)
          Remove an import from this parent.
 Incl removeInclude(Incl includeDef)
          Remove an include from this parent.
 void setAttributeFormDefault(FormChoice form)
           
 void setDocumentURI(java.net.URI documentBaseURI)
          Set the document base URI of this definition.
 void setElementFormDefault(FormChoice form)
           
 void setTargetNamespace(java.lang.String tns)
           
 
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, equals, getDocumentation, getOtherAttributes, hashCode, setDocumentation
 

Method Detail

getTypes

java.util.List<T> getTypes()
Returns:

addType

void addType(T absItfType)

getType

T getType(javax.xml.namespace.QName type)

createComplexType

T createComplexType()

createSimpleType

T createSimpleType()

getElements

java.util.List<E> getElements()

addElement

void addElement(E elmt)

getElement

E getElement(javax.xml.namespace.QName element)

createElement

E createElement()

findElementsInAllSchema

java.util.List<E> findElementsInAllSchema(javax.xml.namespace.QName element)

getAttributes

java.util.List<A> getAttributes()

addAttribute

void addAttribute(A attr)

getAttribute

A getAttribute(javax.xml.namespace.QName attr)

createAttribute

A createAttribute()

getTargetNamespace

java.lang.String getTargetNamespace()

setTargetNamespace

void setTargetNamespace(java.lang.String tns)

getAllNamespaces

NamespaceMapperImpl getAllNamespaces()

addImport

void addImport(Impt importDef)
Add an import to this parent.

Parameters:
importDef - the import to be added

createImport

Impt createImport()
                                       throws SchemaException
Create an import to this parent.

Parameters:
importDef - the import to be added
Throws:
SchemaException - if an imported element can't be retrieved

removeImport

Impt removeImport(Impt importDef)
Remove an import from this parent.

Parameters:
importDef - the import to be removed
Returns:
the removed ImportImpl

getImports

java.util.List<Impt> getImports(java.lang.String namespaceURI)
Get the list of imports for the specified namespaceURI.

Parameters:
namespaceURI - the namespaceURI associated with the desired imports.
Returns:
a list of the corresponding imports, or null if there weren't any matching imports

getImports

java.util.List<Impt> getImports()
Get a map of lists containing all the imports defined here. The map's keys are the namespaceURIs, and the map's values are lists. There is one list for each namespaceURI for which imports have been defined.


addInclude

void addInclude(Incl includeDef)
                throws SchemaException
Add an include to this parent.

Parameters:
includeDef - the include to be added
Throws:
SchemaException - if an included element can't be retrieved

createInclude

Incl createInclude()
                                         throws SchemaException
Create an include to this parent.

Parameters:
includeDef - the include to be added
Throws:
SchemaException - if an included element can't be retrieved

removeInclude

Incl removeInclude(Incl includeDef)
                                         throws SchemaException
Remove an include from this parent.

Parameters:
includeDef - the include to be removed
Returns:
the removed include
Throws:
SchemaException

getIncludes

java.util.List<Incl> getIncludes(java.net.URI locationURI)
                                                       throws java.net.URISyntaxException
Get the list of includes for the specified locationURI.

Parameters:
locationURI - the locationURI associated with the desired includes.
Returns:
a list of the corresponding includes, or null if there weren't any matching includes
Throws:
java.net.URISyntaxException - The schemaLocation definition of an include of the schema is invalid.

getIncludes

java.util.List<Incl> getIncludes()
Get a map of lists containing all the includes defined here. The map's keys are the namespaceURIs, and the map's values are lists. There is one list for each locationURI for which imports have been defined.


setDocumentURI

void setDocumentURI(java.net.URI documentBaseURI)
Set the document base URI of this definition. Can be used to represent the origin of the Definition, and can be exploited when resolving relative URIs (e.g. in <import>s).

Parameters:
documentBaseURI - the document base URI of this definition

getDocumentURI

java.net.URI getDocumentURI()

getElementFormDefault

FormChoice getElementFormDefault()

setElementFormDefault

void setElementFormDefault(FormChoice form)

getAttributeFormDefault

FormChoice getAttributeFormDefault()

setAttributeFormDefault

void setAttributeFormDefault(FormChoice form)

getLang

java.lang.String getLang()

getVersion

java.lang.String getVersion()

getBlockDefault

java.util.List<java.lang.String> getBlockDefault()

getFinalDefault

java.util.List<java.lang.String> getFinalDefault()


Copyright © 2008-2010 Petals Link (previously EBM WebSourcing). All Rights Reserved.