org.ow2.jonas.ws.publish.internal.file
Class JDefinitionWriter

java.lang.Object
  extended by org.ow2.jonas.ws.publish.internal.file.JDefinitionWriter

public class JDefinitionWriter
extends Object

Wrote the given Definition and all imported WSDL to the given base directory.

Author:
Guillaume Sauthier

Constructor Summary
JDefinitionWriter(javax.wsdl.Definition def, File context, Charset cs, String filename)
          Constructs a new JDefinitionWriter that will wrote the given Definition and all imported WSDL to the given base directory.
 
Method Summary
 void write()
          Write the given Definition into the base directory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDefinitionWriter

public JDefinitionWriter(javax.wsdl.Definition def,
                         File context,
                         Charset cs,
                         String filename)
Constructs a new JDefinitionWriter that will wrote the given Definition and all imported WSDL to the given base directory.

Parameters:
def - base Definition
context - Context where file should be wrote (MUST exists)
cs - Charset to use
filename - base Definition filename
Method Detail

write

public void write()
           throws IOException,
                  javax.wsdl.WSDLException
Write the given Definition into the base directory

Throws:
IOException - if a file or directory cannot be created
javax.wsdl.WSDLException - if WSDLWriter is not able to write its Definition


Copyright © 2010 OW2 Consortium. All Rights Reserved.