org.ow2.easywsdl.schema.impl
Class SchemaWriterImpl

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

public class SchemaWriterImpl
extends SchemaJAXBContext
implements SchemaWriter

Author:
Nicolas Salatge - eBM WebSourcing

Constructor Summary
SchemaWriterImpl()
           
 
Method Summary
 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 javax.xml.bind.Marshaller getMarshaller()
          Get the marshaller instance.
 void setFeature(java.lang.String name, boolean value)
          Sets the specified feature to the specified value.
 java.lang.String writeSchema(Schema schemaDef)
          Write the specified SchemaImpl definition .
 
Methods inherited from class org.ow2.easywsdl.schema.impl.SchemaJAXBContext
createContext, getJaxbContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaWriterImpl

public SchemaWriterImpl()
Method Detail

getMarshaller

public static javax.xml.bind.Marshaller getMarshaller()
                                               throws SchemaException
Get the marshaller instance.

Returns:
the marshaller instance
Throws:
SchemaException - The exception raised during the marshaller creation.

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 java.lang.String writeSchema(Schema schemaDef)
                             throws SchemaException
Description copied from interface: SchemaWriter
Write the specified SchemaImpl definition .

Specified by:
writeSchema in interface SchemaWriter
Parameters:
schemaDef - the SchemaImpl definition to be written.
Throws:
SchemaException


Copyright © 2008 eBM WebSourcing. All Rights Reserved.