|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.wsdl11.builder.AbstractWSDL
Provides schema functionality for a WSDLBuilder.
Field Summary | |
static java.lang.String |
CLEAN_IMPORTS
|
static java.lang.String |
GENERATE_IMPORTS
|
static java.lang.String |
REMOVE_ALL_IMPORTS
|
static org.jdom.Namespace |
XSD_NS
|
Fields inherited from interface org.codehaus.xfire.wsdl.WSDLWriter |
WSDL11_NS, WSDL11_SOAP_NS |
Constructor Summary | |
AbstractWSDL(Service service)
|
Method Summary | |
void |
addDependency(SchemaType type)
|
void |
addNamespace(java.lang.String prefix,
java.lang.String uri)
|
void |
addNamespaceImport(java.lang.String uri,
java.lang.String imported)
Adds an import to another namespace. |
void |
addSchema(java.lang.String location)
Loads a schema off the filesystem or the classpath and adds it to the WSDL types section. |
void |
addSchemas(java.util.List schemaLocations)
|
void |
cleanImport(org.jdom.Element node)
|
protected void |
cleanImports()
|
protected void |
cleanImports(org.jdom.Document schema)
Removes the schemaLocation attribute from an <xsd:import> statement. |
org.jdom.Element |
createSchemaType(java.lang.String namespace)
Create a shcema type element and store it to be written later on. |
javax.wsdl.Definition |
getDefinition()
|
org.jdom.Document |
getDocument()
|
org.jdom.Element |
getImport(org.jdom.Element schema,
java.lang.String ns)
|
java.lang.String |
getNamespacePrefix(java.lang.String uri)
|
protected org.jdom.Element |
getSchemaTypes()
|
Service |
getService()
|
java.lang.String |
getTargetNamespace()
|
protected boolean |
hasDependency(SchemaType type)
|
protected boolean |
hasSchema(java.lang.String namespace)
|
boolean |
isSchemaLocationRemoved()
|
protected void |
removeAllImports()
Removes imports from all the schemas. |
void |
setDefinition(javax.wsdl.Definition definition)
|
protected void |
setSchema(java.lang.String namespace,
org.jdom.Element schema)
|
void |
setSchemaLocationRemoved(boolean schemaLocationRemoved)
|
protected void |
setSchemaTypes(org.jdom.Element schemaTypes)
|
void |
setService(Service service)
|
void |
write(java.io.OutputStream out)
Write the WSDL to an OutputStream. |
protected void |
writeComplexTypes()
|
protected void |
writeDocument()
|
protected void |
writeImports()
Write xs:import elements for each schema. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final org.jdom.Namespace XSD_NS
public static final java.lang.String GENERATE_IMPORTS
public static final java.lang.String CLEAN_IMPORTS
public static final java.lang.String REMOVE_ALL_IMPORTS
Constructor Detail |
public AbstractWSDL(Service service) throws javax.wsdl.WSDLException
Method Detail |
protected void writeDocument() throws javax.wsdl.WSDLException
javax.wsdl.WSDLException
protected void writeImports()
public org.jdom.Element getImport(org.jdom.Element schema, java.lang.String ns)
protected void removeAllImports()
protected void cleanImports()
public void cleanImport(org.jdom.Element node)
protected void writeComplexTypes() throws javax.wsdl.WSDLException
javax.wsdl.WSDLException
public void addDependency(SchemaType type)
protected boolean hasDependency(SchemaType type)
public void addNamespaceImport(java.lang.String uri, java.lang.String imported)
uri
- The namespace to import into.imported
- The namespace to import.public void write(java.io.OutputStream out) throws java.io.IOException
WSDLWriter
write
in interface WSDLWriter
out
- The OutputStream.
java.io.IOException
WSDLWriter.write(java.io.OutputStream)
public void addNamespace(java.lang.String prefix, java.lang.String uri)
public java.lang.String getNamespacePrefix(java.lang.String uri)
public org.jdom.Document getDocument()
org.codehaus.xfire.wsdl.WSDLWriter#getDocument()
public javax.wsdl.Definition getDefinition()
public void setDefinition(javax.wsdl.Definition definition)
public Service getService()
public void setService(Service service)
public java.lang.String getTargetNamespace()
public void addSchemas(java.util.List schemaLocations)
public void addSchema(java.lang.String location)
location
- public boolean isSchemaLocationRemoved()
public void setSchemaLocationRemoved(boolean schemaLocationRemoved)
protected void cleanImports(org.jdom.Document schema)
schema
- public org.jdom.Element createSchemaType(java.lang.String namespace)
namespace
- The namespace to create the type in.
protected boolean hasSchema(java.lang.String namespace)
protected void setSchema(java.lang.String namespace, org.jdom.Element schema)
protected org.jdom.Element getSchemaTypes()
protected void setSchemaTypes(org.jdom.Element schemaTypes)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |