Interface AbsItfSchema<T extends AbsItfType,E extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine>
-
- All Superinterfaces:
SchemaElement,Serializable
- All Known Subinterfaces:
DefaultSchema,Schema
- All Known Implementing Classes:
AbstractSchemaImpl,DefaultSchemaImpl,SchemaImpl
public interface AbsItfSchema<T extends AbsItfType,E extends AbsItfElement,A extends AbsItfAttribute,Incl extends AbsItfInclude,Impt extends AbsItfImport,Red extends AbsItfRedefine> extends SchemaElement
- Author:
- Nicolas Salatge - EBM WebSourcing
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAttribute(A attr)voidaddElement(E elmt)voidaddImport(Impt importDef)Add an import to this parent.voidaddInclude(Incl includeDef)Add an include to this parent.voidaddRedefine(Red redDef)voidaddType(T absItfType)AcreateAttribute()TcreateComplexType()EcreateElement()ImptcreateImport()Create an import to this parent.InclcreateInclude()Create an include to this parent.RedcreateRedefine()TcreateSimpleType()List<E>findElementsInAllSchema(QName element)NamespaceMapperImplgetAllNamespaces()AgetAttribute(QName attr)org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoicegetAttributeFormDefault()List<A>getAttributes()List<String>getBlockDefault()URIgetDocumentURI()EgetElement(QName element)org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoicegetElementFormDefault()List<E>getElements()List<String>getFinalDefault()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.StringgetLang()List<Red>getRedefines()List<Red>getRedefines(String namespaceURI)StringgetTargetNamespace()TgetType(QName type)List<T>getTypes()StringgetVersion()ImptremoveImport(Impt importDef)Remove an import from this parent.InclremoveInclude(Incl includeDef)Remove an include from this parent.RedremoveRedefine(Red redDef)voidsetAttributeFormDefault(org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoice form)voidsetDocumentURI(URI documentBaseURI)Set the document base URI of this definition.voidsetElementFormDefault(org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoice form)voidsetTargetNamespace(String tns)-
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, equals, getDocumentation, getOtherAttributes, hashCode, setDocumentation
-
-
-
-
Method Detail
-
addType
void addType(T absItfType)
-
createComplexType
T createComplexType()
-
createSimpleType
T createSimpleType()
-
addElement
void addElement(E elmt)
-
createElement
E createElement()
-
addAttribute
void addAttribute(A attr)
-
createAttribute
A createAttribute()
-
getTargetNamespace
String getTargetNamespace()
-
setTargetNamespace
void setTargetNamespace(String tns)
-
getAllNamespaces
NamespaceMapperImpl getAllNamespaces()
-
addImport
void addImport(Impt importDef)
Add an import to this parent.- Parameters:
importDef- the import to be added
-
createImport
Impt createImport() throws SchemaException
Create an import to this parent.- Throws:
SchemaException- if an imported element can't be retrieved
-
removeImport
Impt removeImport(Impt importDef)
Remove an import from this parent.- Parameters:
importDef- the import to be removed- Returns:
- the removed ImportImpl
-
getImports
List<Impt> getImports(String namespaceURI)
Get the list of imports for the specified namespaceURI.- 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
List<Impt> getImports()
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.
-
addInclude
void addInclude(Incl includeDef) throws SchemaException
Add an include to this parent.- Parameters:
includeDef- the include to be added- Throws:
SchemaException- if an included element can't be retrieved
-
createInclude
Incl createInclude() throws SchemaException
Create an include to this parent.- Throws:
SchemaException- if an included element can't be retrieved
-
removeInclude
Incl removeInclude(Incl includeDef) throws SchemaException
Remove an include from this parent.- Parameters:
includeDef- the include to be removed- Returns:
- the removed include
- Throws:
SchemaException
-
getIncludes
List<Incl> getIncludes(URI locationURI) throws URISyntaxException
Get the list of includes for the specified locationURI.- 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:
URISyntaxException- The schemaLocation definition of an include of the schema is invalid.
-
getIncludes
List<Incl> getIncludes()
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.
-
setDocumentURI
void setDocumentURI(URI documentBaseURI)
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).- Parameters:
documentBaseURI- the document base URI of this definition
-
getDocumentURI
URI getDocumentURI()
-
getElementFormDefault
org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoice getElementFormDefault()
-
setElementFormDefault
void setElementFormDefault(org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoice form)
-
getAttributeFormDefault
org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoice getAttributeFormDefault()
-
setAttributeFormDefault
void setAttributeFormDefault(org.ow2.easywsdl.schema.org.w3._2001.xmlschema.FormChoice form)
-
getLang
String getLang()
-
getVersion
String getVersion()
-
addRedefine
void addRedefine(Red redDef)
-
createRedefine
Red createRedefine() throws SchemaException
- Throws:
SchemaException
-
-