org.ow2.easywsdl.schema.impl
Class SchemaWriterImpl

java.lang.Object
  extended by org.ow2.easywsdl.schema.impl.SchemaWriterImpl
All Implemented Interfaces:
SchemaWriter

public class SchemaWriterImpl
extends java.lang.Object
implements SchemaWriter

Author:
Nicolas Salatge - eBM WebSourcing

Constructor Summary
SchemaWriterImpl()
           
 
Method Summary
 org.w3c.dom.Document convertSchema2DOMElement(Schema schemaDescriptor, NamespaceMapperImpl namespaceMapper)
           
 org.w3c.dom.Document getDocument(Schema schemaDef)
          Return a document generated from the specified SchemaImpl model.
 boolean getFeature(java.lang.String name)
          Gets the value of the specified feature.
static SchemaJAXBContext getJaxbContext()
           
 void setFeature(java.lang.String name, boolean value)
          Sets the specified feature to the specified value.
 void writeSchema(Schema schemaDef, java.io.OutputStream output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaWriterImpl

public SchemaWriterImpl()
                 throws SchemaException
Throws:
SchemaException
Method Detail

getJaxbContext

public static SchemaJAXBContext getJaxbContext()
                                        throws SchemaException
Throws:
SchemaException

convertSchema2DOMElement

public org.w3c.dom.Document convertSchema2DOMElement(Schema schemaDescriptor,
                                                     NamespaceMapperImpl namespaceMapper)
                                              throws SchemaException
Throws:
SchemaException

getDocument

public org.w3c.dom.Document getDocument(Schema schemaDef)
                                 throws SchemaException
Description copied from interface: SchemaWriter
Return a document generated from the specified SchemaImpl model.

Specified by:
getDocument in interface SchemaWriter
Throws:
SchemaException

getFeature

public boolean getFeature(java.lang.String name)
                   throws java.lang.IllegalArgumentException
Description copied from interface: SchemaWriter
Gets the value of the specified feature.

Specified by:
getFeature in interface SchemaWriter
Parameters:
name - the name of the feature to get the value of.
Returns:
the value of the feature.
Throws:
java.lang.IllegalArgumentException - if the feature name is not recognized.
See Also:
SchemaWriter.setFeature(String, boolean)

setFeature

public void setFeature(java.lang.String name,
                       boolean value)
                throws java.lang.IllegalArgumentException
Description copied from interface: SchemaWriter
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

Specified by:
setFeature in interface SchemaWriter
Parameters:
name - the name of the feature to be set.
value - the value to set the feature to.
Throws:
java.lang.IllegalArgumentException - if the feature name is not recognized.
See Also:
SchemaWriter.getFeature(String)

writeSchema

public void writeSchema(Schema schemaDef,
                        java.io.OutputStream output)
                 throws SchemaException
Specified by:
writeSchema in interface SchemaWriter
Throws:
SchemaException


Copyright © 2008-2009 Petals Link (previously EBM WebSourcing). All Rights Reserved.