|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.easywsdl.schema.DefaultSchemaImpl
public class DefaultSchemaImpl
Method Summary | |
---|---|
void |
addAttribute(AbsItfAttribute attr)
|
void |
addElement(AbsItfElement elmt)
|
void |
addImport(AbsItfImport importDef)
Add an import to this parent. |
void |
addInclude(AbsItfInclude includeDef)
Add an include to this parent. |
void |
addType(AbsItfType absItfType)
|
AbsItfAttribute |
createAttribute()
|
AbsItfType |
createComplexType()
|
Documentation |
createDocumentation()
Create the documentation element. |
AbsItfElement |
createElement()
|
AbsItfImport |
createImport()
Create an import to this parent. |
AbsItfInclude |
createInclude()
Create an include to this parent. |
AbsItfType |
createSimpleType()
|
java.util.List<AbsItfElement> |
findElementsInAllSchema(javax.xml.namespace.QName element)
|
NamespaceMapperImpl |
getAllNamespaces()
|
AbsItfAttribute |
getAttribute(javax.xml.namespace.QName attr)
|
FormChoice |
getAttributeFormDefault()
|
java.util.List<AbsItfAttribute> |
getAttributes()
|
java.util.List<java.lang.String> |
getBlockDefault()
|
Documentation |
getDocumentation()
Get the documentation element. |
java.net.URI |
getDocumentURI()
|
AbsItfElement |
getElement(javax.xml.namespace.QName element)
|
FormChoice |
getElementFormDefault()
|
java.util.List<AbsItfElement> |
getElements()
|
java.util.List<java.lang.String> |
getFinalDefault()
|
java.util.List<AbsItfImport> |
getImports()
Get a map of lists containing all the imports defined here. |
java.util.List<AbsItfImport> |
getImports(java.lang.String namespaceURI)
Get the list of imports for the specified namespaceURI. |
java.util.List<AbsItfInclude> |
getIncludes()
Get a map of lists containing all the includes defined here. |
java.util.List<AbsItfInclude> |
getIncludes(java.net.URI locationURI)
Get the list of includes for the specified locationURI. |
static DefaultSchema |
getInstance()
|
java.lang.String |
getLang()
|
java.util.Map<javax.xml.namespace.QName,java.lang.String> |
getOtherAttributes()
Get the map containing all the attributes defined on this element. |
java.lang.String |
getTargetNamespace()
|
Type |
getType(javax.xml.namespace.QName type)
|
Type |
getTypeBoolean()
|
Type |
getTypeDateTime()
|
Type |
getTypeDouble()
|
Type |
getTypeDuration()
|
Type |
getTypeFloat()
|
Type |
getTypeInt()
|
Type |
getTypeInteger()
|
Type |
getTypeLong()
|
java.util.List<Type> |
getTypes()
|
Type |
getTypeShort()
|
Type |
getTypeString()
|
java.lang.String |
getVersion()
|
AbsItfImport |
removeImport(AbsItfImport importDef)
Remove an import from this parent. |
AbsItfInclude |
removeInclude(AbsItfInclude includeDef)
Remove an include from this parent. |
void |
setAttributeFormDefault(FormChoice form)
|
void |
setDocumentation(Documentation doc)
Set the documentation element for this document. |
void |
setDocumentURI(java.net.URI documentBaseURI)
Set the document base URI of this definition. |
void |
setElementFormDefault(FormChoice form)
|
void |
setTargetNamespace(java.lang.String tns)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DefaultSchema getInstance()
public Type getTypeInt()
getTypeInt
in interface DefaultSchema
public Type getTypeString()
getTypeString
in interface DefaultSchema
public Type getTypeDateTime()
getTypeDateTime
in interface DefaultSchema
public Type getTypeBoolean()
getTypeBoolean
in interface DefaultSchema
public java.util.List<Type> getTypes()
getTypes
in interface AbsItfSchema
getTypes
in interface DefaultSchema
public Type getType(javax.xml.namespace.QName type)
getType
in interface AbsItfSchema
getType
in interface DefaultSchema
public Type getTypeDouble()
getTypeDouble
in interface DefaultSchema
public Type getTypeDuration()
getTypeDuration
in interface DefaultSchema
public Type getTypeFloat()
getTypeFloat
in interface DefaultSchema
public Type getTypeInteger()
getTypeInteger
in interface DefaultSchema
public Type getTypeLong()
getTypeLong
in interface DefaultSchema
public Type getTypeShort()
getTypeShort
in interface DefaultSchema
public void addAttribute(AbsItfAttribute attr)
addAttribute
in interface AbsItfSchema
public void addElement(AbsItfElement elmt)
addElement
in interface AbsItfSchema
public void addImport(AbsItfImport importDef)
AbsItfSchema
addImport
in interface AbsItfSchema
importDef
- the import to be addedpublic void addInclude(AbsItfInclude includeDef) throws SchemaException
AbsItfSchema
addInclude
in interface AbsItfSchema
includeDef
- the include to be added
SchemaException
- if an included element can't be retrievedpublic void addType(AbsItfType absItfType)
addType
in interface AbsItfSchema
public AbsItfAttribute createAttribute()
createAttribute
in interface AbsItfSchema
public AbsItfType createComplexType()
createComplexType
in interface AbsItfSchema
public AbsItfElement createElement()
createElement
in interface AbsItfSchema
public AbsItfImport createImport() throws SchemaException
AbsItfSchema
createImport
in interface AbsItfSchema
SchemaException
- if an imported element can't be retrievedpublic AbsItfInclude createInclude() throws SchemaException
AbsItfSchema
createInclude
in interface AbsItfSchema
SchemaException
- if an included element can't be retrievedpublic AbsItfType createSimpleType()
createSimpleType
in interface AbsItfSchema
public java.util.List<AbsItfElement> findElementsInAllSchema(javax.xml.namespace.QName element)
findElementsInAllSchema
in interface AbsItfSchema
public NamespaceMapperImpl getAllNamespaces()
getAllNamespaces
in interface AbsItfSchema
public AbsItfAttribute getAttribute(javax.xml.namespace.QName attr)
getAttribute
in interface AbsItfSchema
public java.util.List<AbsItfAttribute> getAttributes()
getAttributes
in interface AbsItfSchema
public java.util.List<java.lang.String> getBlockDefault()
getBlockDefault
in interface AbsItfSchema
public java.net.URI getDocumentURI()
getDocumentURI
in interface AbsItfSchema
public AbsItfElement getElement(javax.xml.namespace.QName element)
getElement
in interface AbsItfSchema
public java.util.List<AbsItfElement> getElements()
getElements
in interface AbsItfSchema
public java.util.List<java.lang.String> getFinalDefault()
getFinalDefault
in interface AbsItfSchema
public java.util.List<AbsItfImport> getImports(java.lang.String namespaceURI)
AbsItfSchema
getImports
in interface AbsItfSchema
namespaceURI
- the namespaceURI associated with the desired imports.
public java.util.List<AbsItfImport> getImports()
AbsItfSchema
getImports
in interface AbsItfSchema
public java.util.List<AbsItfInclude> getIncludes(java.net.URI locationURI) throws java.net.URISyntaxException
AbsItfSchema
getIncludes
in interface AbsItfSchema
locationURI
- the locationURI associated with the desired includes.
java.net.URISyntaxException
- The schemaLocation definition of an include of the schema is
invalid.public java.util.List<AbsItfInclude> getIncludes()
AbsItfSchema
getIncludes
in interface AbsItfSchema
public java.lang.String getLang()
getLang
in interface AbsItfSchema
public java.lang.String getTargetNamespace()
getTargetNamespace
in interface AbsItfSchema
public java.lang.String getVersion()
getVersion
in interface AbsItfSchema
public AbsItfImport removeImport(AbsItfImport importDef)
AbsItfSchema
removeImport
in interface AbsItfSchema
importDef
- the import to be removed
public AbsItfInclude removeInclude(AbsItfInclude includeDef) throws SchemaException
AbsItfSchema
removeInclude
in interface AbsItfSchema
includeDef
- the include to be removed
SchemaException
public void setDocumentURI(java.net.URI documentBaseURI)
AbsItfSchema
setDocumentURI
in interface AbsItfSchema
documentBaseURI
- the document base URI of this definitionpublic void setTargetNamespace(java.lang.String tns)
setTargetNamespace
in interface AbsItfSchema
public java.util.Map<javax.xml.namespace.QName,java.lang.String> getOtherAttributes() throws XmlException
SchemaElement
getOtherAttributes
in interface SchemaElement
XmlException
public void setDocumentation(Documentation doc)
SchemaElement
setDocumentation
in interface SchemaElement
public FormChoice getAttributeFormDefault()
getAttributeFormDefault
in interface AbsItfSchema
public FormChoice getElementFormDefault()
getElementFormDefault
in interface AbsItfSchema
public void setAttributeFormDefault(FormChoice form)
setAttributeFormDefault
in interface AbsItfSchema
public void setElementFormDefault(FormChoice form)
setElementFormDefault
in interface AbsItfSchema
public Documentation createDocumentation()
SchemaElement
createDocumentation
in interface SchemaElement
public Documentation getDocumentation()
SchemaElement
getDocumentation
in interface SchemaElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |