com.ebmwebsourcing.commons.schema.impl
Class SchemaWriter

java.lang.Object
  extended by com.ebmwebsourcing.commons.schema.impl.SchemaJAXBContext
      extended by com.ebmwebsourcing.commons.schema.impl.SchemaWriter
All Implemented Interfaces:
SchemaWriter

public class SchemaWriter
extends SchemaJAXBContext
implements SchemaWriter

Author:
Nicolas Salatge - eBM WebSourcing

Field Summary
 
Fields inherited from class com.ebmwebsourcing.commons.schema.impl.SchemaJAXBContext
jaxbContext
 
Constructor Summary
SchemaWriter()
           
 
Method Summary
 org.w3c.dom.Document getDocument(Schema schemaDef)
          Return a document generated from the specified Schema 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 Schema definition .
 
Methods inherited from class com.ebmwebsourcing.commons.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

SchemaWriter

public SchemaWriter()
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 Schema 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 Schema definition .

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


Copyright © 2008 eBM WebSourcing. All Rights Reserved.