Package org.ow2.easywsdl.schema.api
Interface SchemaWriter
-
- All Known Implementing Classes:
SchemaWriterImpl
public interface SchemaWriterThis interface describes a collection of methods that allow a SchemaImpl model to be written to a writer in an XML format that follows the SchemaImpl parent.- Author:
- Nicolas Salatge - EBM WebSourcing
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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)
-
-
-
Method Detail
-
setFeature
void setFeature(String name, boolean value) throws IllegalArgumentException
Sets 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
- 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:
getFeature(String)
-
getFeature
boolean getFeature(String name) throws IllegalArgumentException
Gets the value of the specified feature.- 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:
setFeature(String, boolean)
-
getDocument
Document getDocument(Schema schemaDef) throws SchemaException
Return a document generated from the specified SchemaImpl model.- Throws:
SchemaException
-
writeSchema
void writeSchema(Schema schemaDef, OutputStream output) throws SchemaException
- Throws:
SchemaException
-
-