org.apache.axis2.wsdl.codegen.writer
Class ClassWriter

java.lang.Object
  extended byorg.apache.axis2.wsdl.codegen.writer.ClassWriter
Direct Known Subclasses:
AntBuildWriter, CallbackHandlerWriter, CServiceXMLWriter, CStubHeaderWriter, CStubSourceWriter, CSvcSkeletonWriter, ExceptionWriter, InterfaceImplementationWriter, InterfaceWriter, MessageReceiverWriter, PolicyFileWriter, ServiceXMLWriter, SkeletonInterfaceWriter, SkeletonWriter, TestClassWriter

public abstract class ClassWriter
extends java.lang.Object


Field Summary
protected static java.lang.String EXTENSION_SUFFIX
           
protected  boolean fileExists
           
protected  java.lang.String language
           
protected  java.io.File outputFile
           
protected  java.io.File outputFileLocation
           
protected static java.lang.String SEPARATOR_STRING
           
protected  java.io.FileOutputStream stream
           
protected static java.lang.String TEMPLATE_SUFFIX
           
protected  java.io.InputStream xsltStream
           
 
Constructor Summary
ClassWriter()
           
 
Method Summary
 void createOutFile(java.lang.String packageName, java.lang.String fileName)
          Creates the output file.
protected  java.lang.String findTemplate(java.util.Map languageSpecificPropertyMap)
           
protected  java.lang.String getFileExtensionForLanguage(java.lang.String language)
          Finds the file name extension.
 void loadTemplate()
          Loads the template.
 void parse(org.w3c.dom.Document doc, javax.xml.transform.URIResolver resolver)
          Writes the output file.
 void setLanguage(java.lang.String language)
          Sets the language.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputFileLocation

protected java.io.File outputFileLocation

outputFile

protected java.io.File outputFile

stream

protected java.io.FileOutputStream stream

xsltStream

protected java.io.InputStream xsltStream

language

protected java.lang.String language

TEMPLATE_SUFFIX

protected static final java.lang.String TEMPLATE_SUFFIX
See Also:
Constant Field Values

EXTENSION_SUFFIX

protected static final java.lang.String EXTENSION_SUFFIX
See Also:
Constant Field Values

SEPARATOR_STRING

protected static final java.lang.String SEPARATOR_STRING
See Also:
Constant Field Values

fileExists

protected boolean fileExists
Constructor Detail

ClassWriter

public ClassWriter()
Method Detail

setLanguage

public void setLanguage(java.lang.String language)
Sets the language.

Parameters:
language -

loadTemplate

public void loadTemplate()
                  throws CodeGenerationException
Loads the template.

Throws:
CodeGenerationException

findTemplate

protected java.lang.String findTemplate(java.util.Map languageSpecificPropertyMap)

createOutFile

public void createOutFile(java.lang.String packageName,
                          java.lang.String fileName)
                   throws java.lang.Exception
Creates the output file.

Parameters:
packageName -
fileName -
Throws:
java.lang.Exception

getFileExtensionForLanguage

protected java.lang.String getFileExtensionForLanguage(java.lang.String language)
Finds the file name extension.

Parameters:
language -
Returns:
Returns the file extension.

parse

public void parse(org.w3c.dom.Document doc,
                  javax.xml.transform.URIResolver resolver)
           throws java.lang.Exception
Writes the output file.

Parameters:
doc -
Throws:
java.lang.Exception


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.