org.apache.ws.jaxme.js
Class JavaField

java.lang.Object
  extended by org.apache.ws.jaxme.js.IndentationEngineImpl
      extended by org.apache.ws.jaxme.js.JavaSourceObject
          extended by org.apache.ws.jaxme.js.JavaField
All Implemented Interfaces:
DirectAccessible, IndentationEngine, TypedValue
Direct Known Subclasses:
ConditionalIndentationJavaSourceObject.LJFImpl

public class JavaField
extends JavaSourceObject
implements DirectAccessible

Implements a field that a java class or interface may have.

Author:
Jochen Wiedmann

Field Summary
 
Fields inherited from interface org.apache.ws.jaxme.js.IndentationEngine
NOTHING
 
Method Summary
 boolean isNullable()
          Returns whether the value is possibly null.
 boolean isTransient()
          Returns whether the field is transient.
 void setNullable(boolean pNullable)
          Sets whether the value is possibly null.
 void setTransient(boolean pTransient)
          Sets whether the field is transient.
 void setValue(java.lang.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
 
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.TypedValue
getType
 

Method Detail

setTransient

public void setTransient(boolean pTransient)

Sets whether the field is transient. By default it isn't.


isTransient

public boolean isTransient()

Returns whether the field is transient. By default it isn't.


write

public void write(IndentationTarget pTarget)
           throws java.io.IOException

Returns a string representation of this field.

Specified by:
write in interface IndentationEngine
Overrides:
write in class IndentationEngineImpl
Throws:
java.io.IOException

writeNoEol

protected void writeNoEol(IndentationTarget pTarget)
                   throws java.io.IOException
Throws:
java.io.IOException

setValue

public void setValue(java.lang.Object pValue)

isNullable

public boolean isNullable()
Description copied from interface: DirectAccessible

Returns whether the value is possibly null.

Specified by:
isNullable in interface DirectAccessible

setNullable

public void setNullable(boolean pNullable)
Description copied from interface: DirectAccessible

Sets whether the value is possibly null.

Specified by:
setNullable in interface DirectAccessible