org.apache.ws.jaxme.js
Class IncreasingTarget
java.lang.Objectorg.apache.ws.jaxme.js.IncreasingTarget
- IndentationTarget
public class IncreasingTarget
extends java.lang.Object
A filtering indentation target, which pipes all output
to the actual target, except that it increases the indentation
level by 1.
$Id: IncreasingTarget.java 231785 2004-02-16 23:39:59Z jochen $
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(Boolean pInterface)
|
void | write()- Terminates a line in the target.
|
void | write(String pValue)- Writes a string to the target.
|
asString
public String asString(JavaQName pQName)
Converts a class name into a string. The string may then be
written to the target using write().
- asString in interface IndentationTarget
indent
public void indent(int i)
throws IOExceptionIndents 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.
- indent in interface IndentationTarget
isInterface
public boolean isInterface()
Returns whether the IndentationEngine is creating a Java
interface. Creating an interface means, for example, that
method bodies are being suppressed.
- isInterface in interface IndentationTarget
setInterface
public void setInterface(Boolean pInterface)
write
public void write()
throws IOExceptionTerminates a line in the target.
- write in interface IndentationTarget
write
public void write(String pValue)
throws IOExceptionWrites a string to the target.
- write in interface IndentationTarget