org.ow2.easywsdl.schema.api.abstractElmt
Class AbstractSchemaImpl<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

java.lang.Object
  extended by org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl<E>
      extended by org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaImpl<E,T,El,A,Incl,Impt,Red>
All Implemented Interfaces:
java.io.Serializable, AbsItfSchema<T,El,A,Incl,Impt,Red>, SchemaElement
Direct Known Subclasses:
SchemaImpl

public abstract class AbstractSchemaImpl<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>
extends AbstractSchemaElementImpl<E>
implements AbsItfSchema<T,El,A,Incl,Impt,Red>

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
AbstractSchemaImpl()
           
AbstractSchemaImpl(java.lang.String baseURIString)
           
AbstractSchemaImpl(java.net.URI documentURI, E schema, NamespaceMapperImpl namespaceMapper, SchemaLocatorImpl schemaLocator)
           
 
Method Summary
 void addAttribute(A elmt)
           
 void addElement(El elmt)
           
 void addImport(Impt impt)
          ImportImpl operation
 void addImportElementsInAllList()
           
 void addInclude(Incl incl)
          IncludeImpl operation
 void addIncludeElementsInAllList()
           
 void addIncludeElementsInAllList(AbsItfInclude incl)
           
 void addRedefine(Red red)
          RedefineImpl operation
 void addRedefineElementsInAllList()
           
 void addType(T type)
           
 java.util.List<El> findElementsInAllSchema(javax.xml.namespace.QName element)
           
 NamespaceMapperImpl getAllNamespaces()
           
 A getAttribute(javax.xml.namespace.QName element)
           
 java.util.List<A> getAttributes()
           
 java.net.URI getDocumentURI()
          methods for baseURI
 El getElement(javax.xml.namespace.QName element)
           
 java.util.List<El> getElements()
           
 java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> getFeatures()
           
 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.util.List<Red> getRedefines()
           
 java.util.List<Red> getRedefines(java.lang.String namespaceURI)
           
 T getType(javax.xml.namespace.QName type)
           
 java.util.List<T> getTypes()
           
abstract  void initialize()
           
 void setDocumentURI(java.net.URI documentURI)
          Set the document base URI of this definition.
 void setFeatures(java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> features)
           
 java.lang.String 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
createAttribute, createComplexType, createElement, createImport, createInclude, createRedefine, createSimpleType, getAttributeFormDefault, getBlockDefault, getElementFormDefault, getFinalDefault, getLang, getTargetNamespace, getVersion, removeImport, removeInclude, removeRedefine, setAttributeFormDefault, setElementFormDefault, setTargetNamespace
 
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, equals, getDocumentation, getOtherAttributes, hashCode, setDocumentation
 

Constructor Detail

AbstractSchemaImpl

public AbstractSchemaImpl()

AbstractSchemaImpl

public AbstractSchemaImpl(java.net.URI documentURI,
                          E schema,
                          NamespaceMapperImpl namespaceMapper,
                          SchemaLocatorImpl schemaLocator)
Parameters:
parent -
doc -

AbstractSchemaImpl

public AbstractSchemaImpl(java.lang.String baseURIString)
Method Detail

initialize

public abstract void initialize()

addImportElementsInAllList

public void addImportElementsInAllList()

addIncludeElementsInAllList

public void addIncludeElementsInAllList()

addIncludeElementsInAllList

public void addIncludeElementsInAllList(AbsItfInclude incl)

addRedefineElementsInAllList

public void addRedefineElementsInAllList()

addImport

public void addImport(Impt impt)
ImportImpl operation

Specified by:
addImport in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>
Parameters:
impt - the import to be added

getImports

public java.util.List<Impt> 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<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

getImports

public java.util.List<Impt> 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<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>
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

addInclude

public void addInclude(Incl incl)
                throws SchemaException
IncludeImpl operation

Specified by:
addInclude in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>
Parameters:
incl - the include to be added
Throws:
WSDLException
SchemaException - if an included element can't be retrieved

getIncludes

public java.util.List<Incl> 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<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

getIncludes

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

Specified by:
getIncludes in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>
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

addRedefine

public void addRedefine(Red red)
RedefineImpl operation

Specified by:
addRedefine in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>
Throws:
WSDLException

getRedefines

public java.util.List<Red> getRedefines()
Specified by:
getRedefines in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

getRedefines

public java.util.List<Red> getRedefines(java.lang.String namespaceURI)
Specified by:
getRedefines in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

getTypes

public java.util.List<T> getTypes()
Specified by:
getTypes in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>
Returns:

getType

public T getType(javax.xml.namespace.QName type)
Specified by:
getType in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

addType

public void addType(T type)
Specified by:
addType in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

getAttributes

public java.util.List<A> getAttributes()
Specified by:
getAttributes in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

getAttribute

public A getAttribute(javax.xml.namespace.QName element)
Specified by:
getAttribute in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

addAttribute

public void addAttribute(A elmt)
Specified by:
addAttribute in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

getElements

public java.util.List<El> getElements()
Specified by:
getElements in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

getElement

public El getElement(javax.xml.namespace.QName element)
Specified by:
getElement in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

findElementsInAllSchema

public java.util.List<El> findElementsInAllSchema(javax.xml.namespace.QName element)
Specified by:
findElementsInAllSchema in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

addElement

public void addElement(El elmt)
Specified by:
addElement in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

getAllNamespaces

public NamespaceMapperImpl getAllNamespaces()
Specified by:
getAllNamespaces in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

getFeatures

public java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> getFeatures()
Returns:
the features

setFeatures

public void setFeatures(java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> features)
Parameters:
features - the features to set

getDocumentURI

public java.net.URI getDocumentURI()
methods for baseURI

Specified by:
getDocumentURI in interface AbsItfSchema<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>

setDocumentURI

public void setDocumentURI(java.net.URI documentURI)
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<T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>
Parameters:
documentURI - the document base URI of this definition

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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