org.ow2.easywsdl.schema.impl
Class SchemaImpl

java.lang.Object
  extended by org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl<E>
      extended by org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaImpl<Schema,Type,Element,Attribute,Include,Import>
          extended by org.ow2.easywsdl.schema.impl.SchemaImpl
All Implemented Interfaces:
java.io.Serializable, AbsItfSchema<Type,Element,Attribute,Include,Import>, Schema, SchemaElement

public class SchemaImpl
extends AbstractSchemaImpl<Schema,Type,Element,Attribute,Include,Import>
implements Schema

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

Field Summary
 
Fields inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
documentation, model, parent
 
Constructor Summary
SchemaImpl()
           
SchemaImpl(java.net.URI documentURI, Schema schema, NamespaceMapperImpl namespaceMapper, SchemaLocatorImpl schemaLocator, java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> features, java.util.Map<java.net.URI,AbsItfSchema> imports, SchemaReaderImpl reader)
           
 
Method Summary
 void addAttribute(Attribute att)
           
 void addElement(Element elmt)
           
 void addImport(Import impt)
          ImportImpl operation
 void addInclude(Include incl)
          IncludeImpl operation
 void addType(Type type)
           
 Attribute createAttribute()
           
 Type createComplexType()
           
 Element createElement()
           
 Import createImport()
          Create an import to this parent.
 Include createInclude()
          Create an include to this parent.
 Type createSimpleType()
           
 FormChoice getAttributeFormDefault()
           
 java.util.List<java.lang.String> getBlockDefault()
           
 FormChoice getElementFormDefault()
           
 java.util.List<java.lang.String> getFinalDefault()
           
 java.lang.String getLang()
           
 java.lang.String getTargetNamespace()
           
 java.lang.String getVersion()
           
 Import removeImport(Import importDef)
          Remove an import from this parent.
 Include removeInclude(Include includeDef)
          Remove an include from this parent.
 void setAttributeFormDefault(FormChoice form)
           
 void setElementFormDefault(FormChoice form)
           
 void setTargetNamespace(java.lang.String tns)
           
 
Methods inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaImpl
addImportElementsInAllList, addIncludeElementsInAllList, findElementsInAllSchema, getAllNamespaces, getAttribute, getAttributes, getDocumentURI, getElement, getElements, getFeatures, getImports, getImports, getIncludes, getIncludes, getType, getTypes, setDocumentURI, setFeatures, toString
 
Methods inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
createDocumentation, equals, getDocumentation, getModel, getOtherAttributes, getParent, getSchema, getTopParent, hashCode, setDocumentation, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.easywsdl.schema.api.absItf.AbsItfSchema
findElementsInAllSchema, getAllNamespaces, getAttribute, getAttributes, getDocumentURI, getElement, getElements, getImports, getImports, getIncludes, getIncludes, getType, getTypes, setDocumentURI
 
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, equals, getDocumentation, getOtherAttributes, hashCode, setDocumentation
 

Constructor Detail

SchemaImpl

public SchemaImpl(java.net.URI documentURI,
                  Schema schema,
                  NamespaceMapperImpl namespaceMapper,
                  SchemaLocatorImpl schemaLocator,
                  java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> features,
                  java.util.Map<java.net.URI,AbsItfSchema> imports,
                  SchemaReaderImpl reader)
           throws SchemaException,
                  java.net.URISyntaxException
Parameters:
documentURI -
schema -
namespaceMapper -
schemaLocator -
features -
imports -
reader -
Throws:
SchemaException
java.net.URISyntaxException - If a schemaLocation attribute of an import, include or redefine is not a valid URI.

SchemaImpl

public SchemaImpl()
           throws SchemaException
Throws:
SchemaException
Method Detail

getTargetNamespace

public java.lang.String getTargetNamespace()
Specified by:
getTargetNamespace in interface AbsItfSchema<Type,Element,Attribute,Include,Import>

getElementFormDefault

public FormChoice getElementFormDefault()
Specified by:
getElementFormDefault in interface AbsItfSchema<Type,Element,Attribute,Include,Import>

getAttributeFormDefault

public FormChoice getAttributeFormDefault()
Specified by:
getAttributeFormDefault in interface AbsItfSchema<Type,Element,Attribute,Include,Import>

getLang

public java.lang.String getLang()
Specified by:
getLang in interface AbsItfSchema<Type,Element,Attribute,Include,Import>

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface AbsItfSchema<Type,Element,Attribute,Include,Import>

getBlockDefault

public java.util.List<java.lang.String> getBlockDefault()
Specified by:
getBlockDefault in interface AbsItfSchema<Type,Element,Attribute,Include,Import>

getFinalDefault

public java.util.List<java.lang.String> getFinalDefault()
Specified by:
getFinalDefault in interface AbsItfSchema<Type,Element,Attribute,Include,Import>

addAttribute

public void addAttribute(Attribute att)
Specified by:
addAttribute in interface AbsItfSchema<Type,Element,Attribute,Include,Import>
Overrides:
addAttribute in class AbstractSchemaImpl<Schema,Type,Element,Attribute,Include,Import>

addImport

public void addImport(Import impt)
Description copied from class: AbstractSchemaImpl
ImportImpl operation

Specified by:
addImport in interface AbsItfSchema<Type,Element,Attribute,Include,Import>
Overrides:
addImport in class AbstractSchemaImpl<Schema,Type,Element,Attribute,Include,Import>
Parameters:
impt - the import to be added

addInclude

public void addInclude(Include incl)
                throws SchemaException
Description copied from class: AbstractSchemaImpl
IncludeImpl operation

Specified by:
addInclude in interface AbsItfSchema<Type,Element,Attribute,Include,Import>
Overrides:
addInclude in class AbstractSchemaImpl<Schema,Type,Element,Attribute,Include,Import>
Parameters:
incl - the include to be added
Throws:
SchemaException - if an included element can't be retrieved

addElement

public void addElement(Element elmt)
Specified by:
addElement in interface AbsItfSchema<Type,Element,Attribute,Include,Import>
Overrides:
addElement in class AbstractSchemaImpl<Schema,Type,Element,Attribute,Include,Import>

addType

public void addType(Type type)
Specified by:
addType in interface AbsItfSchema<Type,Element,Attribute,Include,Import>
Overrides:
addType in class AbstractSchemaImpl<Schema,Type,Element,Attribute,Include,Import>

removeImport

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

Specified by:
removeImport in interface AbsItfSchema<Type,Element,Attribute,Include,Import>
Parameters:
importDef - the import to be removed
Returns:
the removed ImportImpl

removeInclude

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

Specified by:
removeInclude in interface AbsItfSchema<Type,Element,Attribute,Include,Import>
Parameters:
includeDef - the include to be removed
Returns:
the removed include
Throws:
SchemaException

createAttribute

public Attribute createAttribute()
Specified by:
createAttribute in interface AbsItfSchema<Type,Element,Attribute,Include,Import>

createComplexType

public Type createComplexType()
Specified by:
createComplexType in interface AbsItfSchema<Type,Element,Attribute,Include,Import>

createElement

public Element createElement()
Specified by:
createElement in interface AbsItfSchema<Type,Element,Attribute,Include,Import>

createSimpleType

public Type createSimpleType()
Specified by:
createSimpleType in interface AbsItfSchema<Type,Element,Attribute,Include,Import>

setTargetNamespace

public void setTargetNamespace(java.lang.String tns)
Specified by:
setTargetNamespace in interface AbsItfSchema<Type,Element,Attribute,Include,Import>

createImport

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

Specified by:
createImport in interface AbsItfSchema<Type,Element,Attribute,Include,Import>
Throws:
SchemaException - if an imported element can't be retrieved

createInclude

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

Specified by:
createInclude in interface AbsItfSchema<Type,Element,Attribute,Include,Import>
Throws:
SchemaException - if an included element can't be retrieved

setAttributeFormDefault

public void setAttributeFormDefault(FormChoice form)
Specified by:
setAttributeFormDefault in interface AbsItfSchema<Type,Element,Attribute,Include,Import>

setElementFormDefault

public void setElementFormDefault(FormChoice form)
Specified by:
setElementFormDefault in interface AbsItfSchema<Type,Element,Attribute,Include,Import>


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