Package org.ow2.easywsdl.schema.impl
Class SchemaWriterImpl
- java.lang.Object
-
- org.ow2.easywsdl.schema.impl.SchemaWriterImpl
-
- All Implemented Interfaces:
SchemaWriter
public class SchemaWriterImpl extends Object implements SchemaWriter
- Author:
- Nicolas Salatge - EBM WebSourcing
-
-
Constructor Summary
Constructors Constructor Description SchemaWriterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentconvertSchema2DOMElement(org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema schemaDescriptor, NamespaceMapperImpl namespaceMapper)DocumentgetDocument(Schema schemaDef)Return a document generated from the specified SchemaImpl model.booleangetFeature(String name)Gets the value of the specified feature.voidsetFeature(String name, boolean value)Sets the specified feature to the specified value.voidwriteSchema(Schema schemaDef, OutputStream output)
-
-
-
Constructor Detail
-
SchemaWriterImpl
public SchemaWriterImpl() throws SchemaException- Throws:
SchemaException
-
-
Method Detail
-
convertSchema2DOMElement
public Document convertSchema2DOMElement(org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema schemaDescriptor, NamespaceMapperImpl namespaceMapper) throws SchemaException
- Throws:
SchemaException
-
getDocument
public Document getDocument(Schema schemaDef) throws SchemaException
Description copied from interface:SchemaWriterReturn a document generated from the specified SchemaImpl model.- Specified by:
getDocumentin interfaceSchemaWriter- Throws:
SchemaException
-
getFeature
public boolean getFeature(String name) throws IllegalArgumentException
Description copied from interface:SchemaWriterGets the value of the specified feature.- Specified by:
getFeaturein interfaceSchemaWriter- Parameters:
name- the name of the feature to get the value of.- Returns:
- the value of the feature.
- Throws:
IllegalArgumentException- if the feature name is not recognized.- See Also:
SchemaWriter.setFeature(String, boolean)
-
setFeature
public void setFeature(String name, boolean value) throws IllegalArgumentException
Description copied from interface:SchemaWriterSets the specified feature to the specified value.There are no minimum features that must be supported.
All feature names must be fully-qualified, Java package style. All names starting with javax.wsdl. are reserved for features defined by the JSchema specification. It is recommended that implementation- specific features be fully-qualified to match the package name of that implementation. For example: com.abc.featureName
- Specified by:
setFeaturein interfaceSchemaWriter- Parameters:
name- the name of the feature to be set.value- the value to set the feature to.- Throws:
IllegalArgumentException- if the feature name is not recognized.- See Also:
SchemaWriter.getFeature(String)
-
writeSchema
public void writeSchema(Schema schemaDef, OutputStream output) throws SchemaException
- Specified by:
writeSchemain interfaceSchemaWriter- Throws:
SchemaException
-
-