org.apache.ws.jaxme.js.impl
Class TextFileImpl

java.lang.Object
  extended by org.apache.ws.jaxme.js.IndentationEngineImpl
      extended by org.apache.ws.jaxme.js.impl.TextFileImpl
All Implemented Interfaces:
IndentationEngine, TextFile

public class TextFileImpl
extends IndentationEngineImpl
implements TextFile

Author:
Jochen Wiedmann

Field Summary
 
Fields inherited from interface org.apache.ws.jaxme.js.IndentationEngine
NOTHING
 
Constructor Summary
TextFileImpl(java.lang.String pPackageName, java.lang.String pFileName)
           
 
Method Summary
 java.lang.String getContents()
          Returns the text files contents, as a string.
 java.lang.String getFileName()
          Returns the text files file name, without any path component.
 java.lang.String getPackageName()
          Returns the text files package name.
 void setContents(java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ws.jaxme.js.IndentationEngine
addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, clear, getLevel, getPlaceHolder, indent, moveToBottom, moveToTop, newPlaceHolder, setLevel, unindent, write, write
 

Constructor Detail

TextFileImpl

public TextFileImpl(java.lang.String pPackageName,
                    java.lang.String pFileName)
Method Detail

getPackageName

public java.lang.String getPackageName()
Description copied from interface: TextFile

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

getFileName

public java.lang.String getFileName()
Description copied from interface: TextFile

Returns the text files file name, without any path component.

Specified by:
getFileName in interface TextFile

getContents

public java.lang.String getContents()
Description copied from interface: TextFile

Returns the text files contents, as a string.

Specified by:
getContents in interface TextFile

setContents

public void setContents(java.lang.String pContents)
Description copied from interface: TextFile

Sets the text files contents, as a string.

Specified by:
setContents in interface TextFile