org.apache.ws.jaxme.js.impl

Class TextFileImpl

Implemented Interfaces:
IndentationEngine, TextFile

public class TextFileImpl
extends IndentationEngineImpl
implements TextFile

Author:
Jochen Wiedmann

Fields inherited from interface org.apache.ws.jaxme.js.IndentationEngine

NOTHING

Constructor Summary

TextFileImpl(String pPackageName, String pFileName)

Method Summary

String
getContents()
Returns the text files contents, as a string.
String
getFileName()
Returns the text files file name, without any path component.
String
getPackageName()
Returns the text files package name.
void
setContents(String pContents)
Sets the text files contents, as a string.

Methods inherited from class org.apache.ws.jaxme.js.IndentationEngineImpl

addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, asString, checkNulls, clear, getLevel, getLines, getLines, getPlaceHolder, indent, isEmpty, moveToBottom, moveToTop, newPlaceHolder, removePlaceHolder, setLevel, unindent, write, write

Constructor Details

TextFileImpl

public TextFileImpl(String pPackageName,
                    String pFileName)

Method Details

getContents

public String getContents()
Returns the text files contents, as a string.
Specified by:
getContents in interface TextFile

getFileName

public String getFileName()
Returns the text files file name, without any path component.
Specified by:
getFileName in interface TextFile

getPackageName

public String getPackageName()
Returns the text files package name. This package name isn't necessarily a valid Java package name, for example it may be "META-INF".
Specified by:
getPackageName in interface TextFile

setContents

public void setContents(String pContents)
Sets the text files contents, as a string.
Specified by:
setContents in interface TextFile