Class AbstractSchemaImpl<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>
- java.lang.Object
-
- org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl<E>
-
- org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaImpl<E,T,El,A,Incl,Impt,Red>
-
- All Implemented Interfaces:
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
Constructors Constructor Description AbstractSchemaImpl()AbstractSchemaImpl(String baseURIString)AbstractSchemaImpl(URI documentURI, E schema, NamespaceMapperImpl namespaceMapper, SchemaLocatorImpl schemaLocator)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(A elmt)voidaddElement(El elmt)voidaddImport(Impt impt)ImportImpl operationvoidaddImportElementsInAllList()voidaddInclude(Incl incl)IncludeImpl operationvoidaddIncludeElementsInAllList()voidaddIncludeElementsInAllList(AbsItfInclude incl)voidaddRedefine(Red red)RedefineImpl operationvoidaddRedefineElementsInAllList()voidaddType(T type)List<El>findElementsInAllSchema(QName element)NamespaceMapperImplgetAllNamespaces()AgetAttribute(QName element)List<A>getAttributes()URIgetDocumentURI()methods for baseURIElgetElement(QName element)List<El>getElements()Map<SchemaReader.FeatureConstants,Object>getFeatures()List<Impt>getImports()Get a map of lists containing all the imports defined here.List<Impt>getImports(String namespaceUri)Get the list of imports for the specified namespaceURI.List<Incl>getIncludes()Get a map of lists containing all the includes defined here.List<Incl>getIncludes(URI locationUri)Get the list of includes for the specified locationURI.List<Red>getRedefines()List<Red>getRedefines(String namespaceURI)TgetType(QName type)List<T>getTypes()abstract voidinitialize()voidsetDocumentURI(URI documentURI)Set the document base URI of this definition.voidsetFeatures(Map<SchemaReader.FeatureConstants,Object> features)StringtoString()-
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(URI documentURI, E schema, NamespaceMapperImpl namespaceMapper, SchemaLocatorImpl schemaLocator)
-
AbstractSchemaImpl
public AbstractSchemaImpl(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:
addImportin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>- Parameters:
impt- the import to be added
-
getImports
public List<Impt> getImports()
Description copied from interface:AbsItfSchemaGet 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:
getImportsin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
getImports
public List<Impt> getImports(String namespaceUri)
Description copied from interface:AbsItfSchemaGet the list of imports for the specified namespaceURI.- Specified by:
getImportsin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>- 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:
addIncludein interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>- Parameters:
incl- the include to be added- Throws:
SchemaException
-
getIncludes
public List<Incl> getIncludes()
Description copied from interface:AbsItfSchemaGet 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:
getIncludesin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
getIncludes
public List<Incl> getIncludes(URI locationUri)
Description copied from interface:AbsItfSchemaGet the list of includes for the specified locationURI.- Specified by:
getIncludesin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>- 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:
addRedefinein interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
getRedefines
public List<Red> getRedefines()
- Specified by:
getRedefinesin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
getRedefines
public List<Red> getRedefines(String namespaceURI)
- Specified by:
getRedefinesin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
getTypes
public List<T> getTypes()
- Specified by:
getTypesin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>- Returns:
-
getType
public T getType(QName type)
- Specified by:
getTypein interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
addType
public void addType(T type)
- Specified by:
addTypein interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
getAttributes
public List<A> getAttributes()
- Specified by:
getAttributesin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
getAttribute
public A getAttribute(QName element)
- Specified by:
getAttributein interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
addAttribute
public void addAttribute(A elmt)
- Specified by:
addAttributein interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
getElements
public List<El> getElements()
- Specified by:
getElementsin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
getElement
public El getElement(QName element)
- Specified by:
getElementin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
findElementsInAllSchema
public List<El> findElementsInAllSchema(QName element)
- Specified by:
findElementsInAllSchemain interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
addElement
public void addElement(El elmt)
- Specified by:
addElementin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
getAllNamespaces
public NamespaceMapperImpl getAllNamespaces()
- Specified by:
getAllNamespacesin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
getFeatures
public Map<SchemaReader.FeatureConstants,Object> getFeatures()
- Returns:
- the features
-
setFeatures
public void setFeatures(Map<SchemaReader.FeatureConstants,Object> features)
- Parameters:
features- the features to set
-
getDocumentURI
public URI getDocumentURI()
methods for baseURI- Specified by:
getDocumentURIin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>
-
setDocumentURI
public void setDocumentURI(URI documentURI)
Description copied from interface:AbsItfSchemaSet 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:
setDocumentURIin interfaceAbsItfSchema<E,T extends AbsItfType,El extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport>- Parameters:
documentURI- the document base URI of this definition
-
-