|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.wsdl.AbstractWSDL
public abstract class AbstractWSDL
Provides schema functionality for a WSDLBuilder.
Field Summary | |
---|---|
static String |
CLEAN_IMPORTS
|
static String |
GENERATE_IMPORTS
|
static String |
REMOVE_ALL_IMPORTS
|
protected Map |
typeMap
|
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(String prefix,
String uri)
|
void |
addNamespaceImport(String uri,
String imported)
Adds an import to another namespace. |
void |
addSchema(String location)
Loads a schema off the filesystem or the classpath and adds it to the WSDL types section. |
void |
addSchemas(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(String namespace)
Create a shcema type element and store it to be written later on. |
org.jdom.Element |
getImport(org.jdom.Element schema,
String ns)
|
String |
getNamespacePrefix(String uri)
|
protected org.jdom.Element |
getSchemaTypes()
|
Service |
getService()
|
String |
getTargetNamespace()
|
protected boolean |
hasDependency(SchemaType type)
|
protected boolean |
hasSchema(String namespace)
|
protected void |
initialize()
|
boolean |
isSchemaLocationRemoved()
|
protected void |
removeAllImports()
Removes imports from all the schemas. |
protected void |
removeImports(org.jdom.Element schema)
|
protected void |
setSchema(String namespace,
org.jdom.Element schema)
|
void |
setSchemaLocationRemoved(boolean schemaLocationRemoved)
|
protected void |
setSchemaTypes(org.jdom.Element schemaTypes)
|
void |
setService(Service service)
|
protected void |
updateImports()
|
abstract void |
write(OutputStream out)
Write the WSDL to an OutputStream. |
protected abstract void |
writeComplexTypes()
|
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 |
---|
protected Map typeMap
public static final org.jdom.Namespace XSD_NS
public static final String GENERATE_IMPORTS
public static final String CLEAN_IMPORTS
public static final String REMOVE_ALL_IMPORTS
Constructor Detail |
---|
public AbstractWSDL(Service service) throws javax.wsdl.WSDLException
javax.wsdl.WSDLException
Method Detail |
---|
protected void initialize()
protected void updateImports() throws javax.wsdl.WSDLException
javax.wsdl.WSDLException
protected void writeImports()
public org.jdom.Element getImport(org.jdom.Element schema, String ns)
protected void removeAllImports()
protected void removeImports(org.jdom.Element schema)
protected void cleanImports()
public void cleanImport(org.jdom.Element node)
protected abstract void writeComplexTypes()
public void addDependency(SchemaType type)
protected boolean hasDependency(SchemaType type)
public void addNamespaceImport(String uri, String imported)
uri
- The namespace to import into.imported
- The namespace to import.public abstract void write(OutputStream out) throws IOException
WSDLWriter
write
in interface WSDLWriter
out
- The OutputStream.
IOException
public void addNamespace(String prefix, String uri)
public String getNamespacePrefix(String uri)
public Service getService()
public void setService(Service service)
public String getTargetNamespace()
public void addSchemas(List schemaLocations)
public void addSchema(String location)
location
- public boolean isSchemaLocationRemoved()
public void setSchemaLocationRemoved(boolean schemaLocationRemoved)
protected void cleanImports(org.jdom.Document schema)
schema
- public org.jdom.Element createSchemaType(String namespace)
namespace
- The namespace to create the type in.
protected boolean hasSchema(String namespace)
protected void setSchema(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 |