net.sf.jaxme.js
Class IncreasingTarget

java.lang.Object
  extended bynet.sf.jaxme.js.IncreasingTarget
All Implemented Interfaces:
IndentationTarget

public class IncreasingTarget
extends java.lang.Object
implements IndentationTarget

A filtering indentation target, which pipes all output to the actual target, except that it increases the indentation level by 1.

Version:
$Id: IncreasingTarget.java,v 1.1 2003/05/27 03:17:14 joe Exp $
Author:
Jochen Wiedmann

Constructor Summary
IncreasingTarget(IndentationTarget pActualTarget)
           
 
Method Summary
 java.lang.String asString(JavaQName pQName)
          Converts a class name into a string.
 void indent(int i)
          Indents the current line by adding blanks for the given indentation level.
 boolean isInterface()
          Returns whether the IndentationEngine is creating a Java interface.
 void setInterface(java.lang.Boolean pInterface)
           
 void write()
          Terminates a line in the target.
 void write(java.lang.String pValue)
          Writes a string to the target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncreasingTarget

public IncreasingTarget(IndentationTarget pActualTarget)
Method Detail

isInterface

public boolean isInterface()
Description copied from interface: IndentationTarget

Returns whether the IndentationEngine is creating a Java interface. Creating an interface means, for example, that method bodies are being suppressed.

Specified by:
isInterface in interface IndentationTarget

setInterface

public void setInterface(java.lang.Boolean pInterface)

indent

public void indent(int i)
            throws java.io.IOException
Description copied from interface: IndentationTarget

Indents the current line by adding blanks for the given indentation level. This method must be called before any of the write(String) or write() methods or following the line terminating write() method.

Specified by:
indent in interface IndentationTarget
Throws:
java.io.IOException

asString

public java.lang.String asString(JavaQName pQName)
Description copied from interface: IndentationTarget

Converts a class name into a string. The string may then be written to the target using write().

Specified by:
asString in interface IndentationTarget

write

public void write(java.lang.String pValue)
           throws java.io.IOException
Description copied from interface: IndentationTarget

Writes a string to the target.

Specified by:
write in interface IndentationTarget
Throws:
java.io.IOException

write

public void write()
           throws java.io.IOException
Description copied from interface: IndentationTarget

Terminates a line in the target.

Specified by:
write in interface IndentationTarget
Throws:
java.io.IOException