Package org.ow2.easywsdl.schema.impl
Class SchemaImpl
-
- All Implemented Interfaces:
Serializable,AbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>,Schema,SchemaElement
public class SchemaImpl extends AbstractSchemaImpl<org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema,Type,Element,Attribute,Include,Import,Redefine> 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
Constructors Constructor Description SchemaImpl()SchemaImpl(URI documentURI, org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema schema, NamespaceMapperImpl namespaceMapper, SchemaLocatorImpl schemaLocator, Map<SchemaReader.FeatureConstants,Object> features, Map<URI,AbsItfSchema> imports, SchemaReaderImpl reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(Attribute att)voidaddElement(Element elmt)voidaddImport(Import impt)ImportImpl operationvoidaddInclude(Include incl)IncludeImpl operationvoidaddRedefine(Redefine red)RedefineImpl operationvoidaddType(Type type)AttributecreateAttribute()TypecreateComplexType()ElementcreateElement()ImportcreateImport()Create an import to this parent.IncludecreateInclude()Create an include to this parent.RedefinecreateRedefine()TypecreateSimpleType()org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoicegetAttributeFormDefault()List<String>getBlockDefault()org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoicegetElementFormDefault()List<String>getFinalDefault()StringgetLang()StringgetTargetNamespace()StringgetVersion()voidinitialize()ImportremoveImport(Import importDef)Remove an import from this parent.IncluderemoveInclude(Include includeDef)Remove an include from this parent.RedefineremoveRedefine(Redefine redefineDef)voidsetAttributeFormDefault(org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoice form)voidsetElementFormDefault(org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoice form)voidsetTargetNamespace(String tns)-
Methods inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaImpl
addImportElementsInAllList, addIncludeElementsInAllList, addIncludeElementsInAllList, addRedefineElementsInAllList, findElementsInAllSchema, getAllNamespaces, getAttribute, getAttributes, getDocumentURI, getElement, getElements, getFeatures, getImports, getImports, getIncludes, getIncludes, getRedefines, getRedefines, 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, getRedefines, getRedefines, getType, getTypes, setDocumentURI
-
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, equals, getDocumentation, getOtherAttributes, hashCode, setDocumentation
-
-
-
-
Constructor Detail
-
SchemaImpl
public SchemaImpl(URI documentURI, org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema schema, NamespaceMapperImpl namespaceMapper, SchemaLocatorImpl schemaLocator, Map<SchemaReader.FeatureConstants,Object> features, Map<URI,AbsItfSchema> imports, SchemaReaderImpl reader) throws SchemaException, URISyntaxException
- Parameters:
documentURI-schema-namespaceMapper-schemaLocator-features-imports-reader-- Throws:
SchemaExceptionURISyntaxException- If a schemaLocation attribute of an import, include or redefine is not a valid URI.
-
SchemaImpl
public SchemaImpl() throws SchemaException- Throws:
SchemaException
-
-
Method Detail
-
initialize
public void initialize()
- Specified by:
initializein classAbstractSchemaImpl<org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema,Type,Element,Attribute,Include,Import,Redefine>
-
getTargetNamespace
public String getTargetNamespace()
- Specified by:
getTargetNamespacein interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
getElementFormDefault
public org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoice getElementFormDefault()
- Specified by:
getElementFormDefaultin interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
getAttributeFormDefault
public org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoice getAttributeFormDefault()
- Specified by:
getAttributeFormDefaultin interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
getLang
public String getLang()
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
getBlockDefault
public List<String> getBlockDefault()
- Specified by:
getBlockDefaultin interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
getFinalDefault
public List<String> getFinalDefault()
- Specified by:
getFinalDefaultin interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
addAttribute
public void addAttribute(Attribute att)
- Specified by:
addAttributein interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>- Overrides:
addAttributein classAbstractSchemaImpl<org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema,Type,Element,Attribute,Include,Import,Redefine>
-
addImport
public void addImport(Import impt)
Description copied from class:AbstractSchemaImplImportImpl operation- Specified by:
addImportin interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>- Overrides:
addImportin classAbstractSchemaImpl<org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema,Type,Element,Attribute,Include,Import,Redefine>- Parameters:
impt- the import to be added
-
addInclude
public void addInclude(Include incl) throws SchemaException
Description copied from class:AbstractSchemaImplIncludeImpl operation- Specified by:
addIncludein interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>- Overrides:
addIncludein classAbstractSchemaImpl<org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema,Type,Element,Attribute,Include,Import,Redefine>- Parameters:
incl- the include to be added- Throws:
SchemaException- if an included element can't be retrieved
-
addRedefine
public void addRedefine(Redefine red)
Description copied from class:AbstractSchemaImplRedefineImpl operation- Specified by:
addRedefinein interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>- Overrides:
addRedefinein classAbstractSchemaImpl<org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema,Type,Element,Attribute,Include,Import,Redefine>
-
addElement
public void addElement(Element elmt)
- Specified by:
addElementin interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>- Overrides:
addElementin classAbstractSchemaImpl<org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema,Type,Element,Attribute,Include,Import,Redefine>
-
addType
public void addType(Type type)
-
removeImport
public Import removeImport(Import importDef)
Description copied from interface:AbsItfSchemaRemove an import from this parent.- Specified by:
removeImportin interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>- Parameters:
importDef- the import to be removed- Returns:
- the removed ImportImpl
-
removeInclude
public Include removeInclude(Include includeDef) throws SchemaException
Description copied from interface:AbsItfSchemaRemove an include from this parent.- Specified by:
removeIncludein interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>- Parameters:
includeDef- the include to be removed- Returns:
- the removed include
- Throws:
SchemaException
-
removeRedefine
public Redefine removeRedefine(Redefine redefineDef)
- Specified by:
removeRedefinein interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
createAttribute
public Attribute createAttribute()
- Specified by:
createAttributein interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
createComplexType
public Type createComplexType()
- Specified by:
createComplexTypein interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
createElement
public Element createElement()
- Specified by:
createElementin interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
createSimpleType
public Type createSimpleType()
- Specified by:
createSimpleTypein interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
setTargetNamespace
public void setTargetNamespace(String tns)
- Specified by:
setTargetNamespacein interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
createImport
public Import createImport() throws SchemaException
Description copied from interface:AbsItfSchemaCreate an import to this parent.- Specified by:
createImportin interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>- Throws:
SchemaException- if an imported element can't be retrieved
-
createInclude
public Include createInclude() throws SchemaException
Description copied from interface:AbsItfSchemaCreate an include to this parent.- Specified by:
createIncludein interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>- Throws:
SchemaException- if an included element can't be retrieved
-
createRedefine
public Redefine createRedefine() throws SchemaException
- Specified by:
createRedefinein interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>- Throws:
SchemaException
-
setAttributeFormDefault
public void setAttributeFormDefault(org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoice form)
- Specified by:
setAttributeFormDefaultin interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
setElementFormDefault
public void setElementFormDefault(org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoice form)
- Specified by:
setElementFormDefaultin interfaceAbsItfSchema<Type,Element,Attribute,Include,Import,Redefine>
-
-