| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.wsdl.codegen.writer.FileWriter
public abstract class FileWriter
| Field Summary | |
|---|---|
| protected static String | EXTENSION_SUFFIX | 
| protected  boolean | fileExists | 
| protected  boolean | isOverride | 
| protected  String | language | 
| protected  File | outputFile | 
| protected  File | outputFileLocation | 
| protected static String | SEPARATOR_STRING | 
| protected  FileOutputStream | stream | 
| protected static String | TEMPLATE_SUFFIX | 
| protected  InputStream | xsltStream | 
| Constructor Summary | |
|---|---|
| FileWriter() | |
| Method Summary | |
|---|---|
|  void | createOutFile(String packageName,
              String fileName)Creates the output file. | 
| protected  String | findTemplate(Map languageSpecificPropertyMap) | 
| protected  String | getFileExtensionForLanguage(String language)Finds the file name extension. | 
|  File | getOutputFile() | 
|  boolean | isOverride() | 
|  void | loadTemplate()Loads the template. | 
|  void | parse(Document doc,
      URIResolver resolver)Writes the output file. | 
|  void | setLanguage(String language)Sets the language. | 
|  void | setOutputFile(File outputFile) | 
|  void | setOverride(boolean override) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected File outputFileLocation
protected File outputFile
protected FileOutputStream stream
protected InputStream xsltStream
protected String language
protected static final String TEMPLATE_SUFFIX
protected static final String EXTENSION_SUFFIX
protected static final String SEPARATOR_STRING
protected boolean fileExists
protected boolean isOverride
| Constructor Detail | 
|---|
public FileWriter()
| Method Detail | 
|---|
public void setLanguage(String language)
language - 
public void loadTemplate()
                  throws CodeGenerationException
CodeGenerationExceptionprotected String findTemplate(Map languageSpecificPropertyMap)
public void createOutFile(String packageName,
                          String fileName)
                   throws Exception
packageName - fileName - 
Exceptionprotected String getFileExtensionForLanguage(String language)
language - 
public void parse(Document doc,
                  URIResolver resolver)
           throws Exception
doc - 
Exceptionpublic boolean isOverride()
public void setOverride(boolean override)
public File getOutputFile()
public void setOutputFile(File outputFile)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||