org.apache.ws.jaxme.js

Interface IndentationTarget

public interface IndentationTarget

Interface that an IndentationEngine's target must fulfill.

Method Summary
StringasString(JavaQName pQName)

Converts a class name into a string.

voidindent(int i)

Indents the current line by adding blanks for the given indentation level.

booleanisInterface()

Returns whether the IndentationEngine is creating a Java interface.

voidwrite(String pValue)

Writes a string to the target.

voidwrite()

Terminates a line in the target.

Method Detail

asString

public String asString(JavaQName pQName)

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

indent

public void indent(int i)

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.

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.

write

public void write(String pValue)

Writes a string to the target.

write

public void write()

Terminates a line in the target.