org.apache.ws.jaxme.js

Class JavaField

Implemented Interfaces:
DirectAccessible, IndentationEngine, TypedValue
Known Direct Subclasses:
ConditionalIndentationJavaSourceObject.LJFImpl

public class JavaField
extends JavaSourceObject
implements DirectAccessible

Implements a field that a java class or interface may have.
Author:
Jochen Wiedmann

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

NOTHING

Method Summary

boolean
isNullable()
boolean
isTransient()
Returns whether the field is transient.
void
setNullable(boolean pNullable)
void
setTransient(boolean pTransient)
Sets whether the field is transient.
void
setValue(Object pValue)
void
write(IndentationTarget pTarget)
Returns a string representation of this field.
protected void
writeNoEol(IndentationTarget pTarget)

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

getComment, getJavaSource, getName, getProtection, getType, isAbstract, isFinal, isStatic, newComment, setAbstract, setFinal, setJavaSource, setName, setProtection, setStatic, setType

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

Method Details

isNullable

public boolean isNullable()
Specified by:
isNullable in interface DirectAccessible

isTransient

public boolean isTransient()
Returns whether the field is transient. By default it isn't.

setNullable

public void setNullable(boolean pNullable)
Specified by:
setNullable in interface DirectAccessible

setTransient

public void setTransient(boolean pTransient)
Sets whether the field is transient. By default it isn't.

setValue

public void setValue(Object pValue)

write

public void write(IndentationTarget pTarget)
            throws IOException
Returns a string representation of this field.
Specified by:
write in interface IndentationEngine
Overrides:
write in interface IndentationEngineImpl

writeNoEol

protected void writeNoEol(IndentationTarget pTarget)
            throws IOException