Class FileWriter
java.lang.Object
org.apache.axis2.wsdl.codegen.writer.FileWriter
- Direct Known Subclasses:
AntBuildWriter,CallbackHandlerWriter,CBuildScriptWriter,CServiceXMLWriter,CStubHeaderWriter,CStubSourceWriter,CSvcSkeletonWriter,CVCProjectWriter,ExceptionWriter,InterfaceImplementationWriter,InterfaceWriter,MessageReceiverWriter,PolicyFileWriter,ServiceXMLWriter,SkeletonInterfaceWriter,SkeletonWriter,TestClassWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected booleanprotected booleanprotected Stringprotected Fileprotected Fileprotected static final Stringprotected FileOutputStreamprotected static final Stringprotected InputStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateOutFile(String packageName, String fileName) Creates the output file.protected StringfindTemplate(Map languageSpecificPropertyMap) protected StringgetFileExtensionForLanguage(String language) Finds the file name extension.booleanvoidLoads the template.voidparse(Document doc, URIResolver resolver) Writes the output file.voidsetLanguage(String language) Sets the language.voidsetOutputFile(File outputFile) voidsetOverride(boolean override)
-
Field Details
-
outputFileLocation
-
outputFile
-
stream
-
xsltStream
-
language
-
TEMPLATE_SUFFIX
- See Also:
-
EXTENSION_SUFFIX
- See Also:
-
SEPARATOR_STRING
- See Also:
-
fileExists
protected boolean fileExists -
isOverride
protected boolean isOverride
-
-
Constructor Details
-
FileWriter
public FileWriter()
-
-
Method Details
-
setLanguage
Sets the language.- Parameters:
language-
-
loadTemplate
Loads the template.- Throws:
CodeGenerationException
-
findTemplate
-
createOutFile
Creates the output file.- Parameters:
packageName-fileName-- Throws:
Exception
-
getFileExtensionForLanguage
Finds the file name extension.- Parameters:
language-- Returns:
- Returns the file extension.
-
parse
Writes the output file.- Parameters:
doc-- Throws:
Exception
-
isOverride
public boolean isOverride() -
setOverride
public void setOverride(boolean override) -
getOutputFile
-
setOutputFile
-