org.ow2.easywsdl.schema
Class DefaultSchemaImpl

java.lang.Object
  extended by org.ow2.easywsdl.schema.DefaultSchemaImpl
All Implemented Interfaces:
java.io.Serializable, AbsItfSchema, SchemaElement, DefaultSchema

public class DefaultSchemaImpl
extends java.lang.Object
implements DefaultSchema

Author:
Nicolas Salatge - eBM WebSourcing
See Also:
Serialized Form

Method Summary
 void addAttribute(AbsItfAttribute attr)
           
 void addElement(AbsItfElement elmt)
           
 void addImport(AbsItfImport importDef)
          Add an import to this parent.
 void addInclude(AbsItfInclude includeDef)
          Add an include to this parent.
 void addType(AbsItfType absItfType)
           
 AbsItfAttribute createAttribute()
           
 AbsItfType createComplexType()
           
 Documentation createDocumentation()
          Create the documentation element.
 AbsItfElement createElement()
           
 AbsItfImport createImport()
          Create an import to this parent.
 AbsItfInclude createInclude()
          Create an include to this parent.
 AbsItfType createSimpleType()
           
 java.util.List<AbsItfElement> findElementsInAllSchema(javax.xml.namespace.QName element)
           
 NamespaceMapperImpl getAllNamespaces()
           
 AbsItfAttribute getAttribute(javax.xml.namespace.QName attr)
           
 FormChoice getAttributeFormDefault()
           
 java.util.List<AbsItfAttribute> getAttributes()
           
 java.util.List<java.lang.String> getBlockDefault()
           
 Documentation getDocumentation()
          Get the documentation element.
 java.net.URI getDocumentURI()
           
 AbsItfElement getElement(javax.xml.namespace.QName element)
           
 FormChoice getElementFormDefault()
           
 java.util.List<AbsItfElement> getElements()
           
 java.util.List<java.lang.String> getFinalDefault()
           
 java.util.List<AbsItfImport> getImports()
          Get a map of lists containing all the imports defined here.
 java.util.List<AbsItfImport> getImports(java.lang.String namespaceURI)
          Get the list of imports for the specified namespaceURI.
 java.util.List<AbsItfInclude> getIncludes()
          Get a map of lists containing all the includes defined here.
 java.util.List<AbsItfInclude> getIncludes(java.net.URI locationURI)
          Get the list of includes for the specified locationURI.
static DefaultSchema getInstance()
           
 java.lang.String getLang()
           
 java.util.Map<javax.xml.namespace.QName,java.lang.String> getOtherAttributes()
          Get the map containing all the attributes defined on this element.
 java.lang.String getTargetNamespace()
           
 Type getType(javax.xml.namespace.QName type)
           
 Type getTypeBoolean()
           
 Type getTypeDateTime()
           
 Type getTypeDouble()
           
 Type getTypeDuration()
           
 Type getTypeFloat()
           
 Type getTypeInt()
           
 Type getTypeInteger()
           
 Type getTypeLong()
           
 java.util.List<Type> getTypes()
           
 Type getTypeShort()
           
 Type getTypeString()
           
 java.lang.String getVersion()
           
 AbsItfImport removeImport(AbsItfImport importDef)
          Remove an import from this parent.
 AbsItfInclude removeInclude(AbsItfInclude includeDef)
          Remove an include from this parent.
 void setAttributeFormDefault(FormChoice form)
           
 void setDocumentation(Documentation doc)
          Set the documentation element for this document.
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DefaultSchema getInstance()

getTypeInt

public Type getTypeInt()
Specified by:
getTypeInt in interface DefaultSchema

getTypeString

public Type getTypeString()
Specified by:
getTypeString in interface DefaultSchema

getTypeDateTime

public Type getTypeDateTime()
Specified by:
getTypeDateTime in interface DefaultSchema

getTypeBoolean

public Type getTypeBoolean()
Specified by:
getTypeBoolean in interface DefaultSchema

getTypes

public java.util.List<Type> getTypes()
Specified by:
getTypes in interface AbsItfSchema
Specified by:
getTypes in interface DefaultSchema
Returns:

getType

public Type getType(javax.xml.namespace.QName type)
Specified by:
getType in interface AbsItfSchema
Specified by:
getType in interface DefaultSchema

getTypeDouble

public Type getTypeDouble()
Specified by:
getTypeDouble in interface DefaultSchema

getTypeDuration

public Type getTypeDuration()
Specified by:
getTypeDuration in interface DefaultSchema

getTypeFloat

public Type getTypeFloat()
Specified by:
getTypeFloat in interface DefaultSchema

getTypeInteger

public Type getTypeInteger()
Specified by:
getTypeInteger in interface DefaultSchema

getTypeLong

public Type getTypeLong()
Specified by:
getTypeLong in interface DefaultSchema

getTypeShort

public Type getTypeShort()
Specified by:
getTypeShort in interface DefaultSchema

addAttribute

public void addAttribute(AbsItfAttribute attr)
Specified by:
addAttribute in interface AbsItfSchema

addElement

public void addElement(AbsItfElement elmt)
Specified by:
addElement in interface AbsItfSchema

addImport

public void addImport(AbsItfImport importDef)
Description copied from interface: AbsItfSchema
Add an import to this parent.

Specified by:
addImport in interface AbsItfSchema
Parameters:
importDef - the import to be added

addInclude

public void addInclude(AbsItfInclude includeDef)
                throws SchemaException
Description copied from interface: AbsItfSchema
Add an include to this parent.

Specified by:
addInclude in interface AbsItfSchema
Parameters:
includeDef - the include to be added
Throws:
SchemaException - if an included element can't be retrieved

addType

public void addType(AbsItfType absItfType)
Specified by:
addType in interface AbsItfSchema

createAttribute

public AbsItfAttribute createAttribute()
Specified by:
createAttribute in interface AbsItfSchema

createComplexType

public AbsItfType createComplexType()
Specified by:
createComplexType in interface AbsItfSchema

createElement

public AbsItfElement createElement()
Specified by:
createElement in interface AbsItfSchema

createImport

public AbsItfImport createImport()
                          throws SchemaException
Description copied from interface: AbsItfSchema
Create an import to this parent.

Specified by:
createImport in interface AbsItfSchema
Throws:
SchemaException - if an imported element can't be retrieved

createInclude

public AbsItfInclude createInclude()
                            throws SchemaException
Description copied from interface: AbsItfSchema
Create an include to this parent.

Specified by:
createInclude in interface AbsItfSchema
Throws:
SchemaException - if an included element can't be retrieved

createSimpleType

public AbsItfType createSimpleType()
Specified by:
createSimpleType in interface AbsItfSchema

findElementsInAllSchema

public java.util.List<AbsItfElement> findElementsInAllSchema(javax.xml.namespace.QName element)
Specified by:
findElementsInAllSchema in interface AbsItfSchema

getAllNamespaces

public NamespaceMapperImpl getAllNamespaces()
Specified by:
getAllNamespaces in interface AbsItfSchema

getAttribute

public AbsItfAttribute getAttribute(javax.xml.namespace.QName attr)
Specified by:
getAttribute in interface AbsItfSchema

getAttributes

public java.util.List<AbsItfAttribute> getAttributes()
Specified by:
getAttributes in interface AbsItfSchema

getBlockDefault

public java.util.List<java.lang.String> getBlockDefault()
Specified by:
getBlockDefault in interface AbsItfSchema

getDocumentURI

public java.net.URI getDocumentURI()
Specified by:
getDocumentURI in interface AbsItfSchema

getElement

public AbsItfElement getElement(javax.xml.namespace.QName element)
Specified by:
getElement in interface AbsItfSchema

getElements

public java.util.List<AbsItfElement> getElements()
Specified by:
getElements in interface AbsItfSchema

getFinalDefault

public java.util.List<java.lang.String> getFinalDefault()
Specified by:
getFinalDefault in interface AbsItfSchema

getImports

public java.util.List<AbsItfImport> getImports(java.lang.String namespaceURI)
Description copied from interface: AbsItfSchema
Get the list of imports for the specified namespaceURI.

Specified by:
getImports in interface AbsItfSchema
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

public java.util.List<AbsItfImport> getImports()
Description copied from interface: AbsItfSchema
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.

Specified by:
getImports in interface AbsItfSchema

getIncludes

public java.util.List<AbsItfInclude> getIncludes(java.net.URI locationURI)
                                          throws java.net.URISyntaxException
Description copied from interface: AbsItfSchema
Get the list of includes for the specified locationURI.

Specified by:
getIncludes in interface AbsItfSchema
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

public java.util.List<AbsItfInclude> getIncludes()
Description copied from interface: AbsItfSchema
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.

Specified by:
getIncludes in interface AbsItfSchema

getLang

public java.lang.String getLang()
Specified by:
getLang in interface AbsItfSchema

getTargetNamespace

public java.lang.String getTargetNamespace()
Specified by:
getTargetNamespace in interface AbsItfSchema

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface AbsItfSchema

removeImport

public AbsItfImport removeImport(AbsItfImport importDef)
Description copied from interface: AbsItfSchema
Remove an import from this parent.

Specified by:
removeImport in interface AbsItfSchema
Parameters:
importDef - the import to be removed
Returns:
the removed ImportImpl

removeInclude

public AbsItfInclude removeInclude(AbsItfInclude includeDef)
                            throws SchemaException
Description copied from interface: AbsItfSchema
Remove an include from this parent.

Specified by:
removeInclude in interface AbsItfSchema
Parameters:
includeDef - the include to be removed
Returns:
the removed include
Throws:
SchemaException

setDocumentURI

public void setDocumentURI(java.net.URI documentBaseURI)
Description copied from interface: AbsItfSchema
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).

Specified by:
setDocumentURI in interface AbsItfSchema
Parameters:
documentBaseURI - the document base URI of this definition

setTargetNamespace

public void setTargetNamespace(java.lang.String tns)
Specified by:
setTargetNamespace in interface AbsItfSchema

getOtherAttributes

public java.util.Map<javax.xml.namespace.QName,java.lang.String> getOtherAttributes()
                                                                             throws XmlException
Description copied from interface: SchemaElement
Get the map containing all the attributes defined on this element. The keys are the qnames of the attributes.

Specified by:
getOtherAttributes in interface SchemaElement
Returns:
a map containing all the attributes defined on this element
Throws:
XmlException

setDocumentation

public void setDocumentation(Documentation doc)
Description copied from interface: SchemaElement
Set the documentation element for this document.

Specified by:
setDocumentation in interface SchemaElement

getAttributeFormDefault

public FormChoice getAttributeFormDefault()
Specified by:
getAttributeFormDefault in interface AbsItfSchema

getElementFormDefault

public FormChoice getElementFormDefault()
Specified by:
getElementFormDefault in interface AbsItfSchema

setAttributeFormDefault

public void setAttributeFormDefault(FormChoice form)
Specified by:
setAttributeFormDefault in interface AbsItfSchema

setElementFormDefault

public void setElementFormDefault(FormChoice form)
Specified by:
setElementFormDefault in interface AbsItfSchema

createDocumentation

public Documentation createDocumentation()
Description copied from interface: SchemaElement
Create the documentation element.

Specified by:
createDocumentation in interface SchemaElement
Returns:
the documentation element

getDocumentation

public Documentation getDocumentation()
Description copied from interface: SchemaElement
Get the documentation element.

Specified by:
getDocumentation in interface SchemaElement
Returns:
the documentation element


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