de.ispsoft.jaxme.generator.javasource
Class JavaField

java.lang.Object
  extended byde.ispsoft.jaxme.generator.javasource.JavaSourceObject
      extended byde.ispsoft.jaxme.generator.javasource.JavaField

public class JavaField
extends JavaSourceObject

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

Author:
Jochen Wiedmann

Constructor Summary
JavaField(java.lang.String name, java.lang.String type)
          Creates a new JavaField with default protection
JavaField(java.lang.String name, java.lang.String type, java.lang.String protection)
          Creates a new JavaField
 
Method Summary
 java.lang.String getValue()
           
 void setValue(java.lang.String pValue)
           
 java.lang.String toString(int indent)
          Returns a string representation of this field.
 
Methods inherited from class de.ispsoft.jaxme.generator.javasource.JavaSourceObject
getComment, getFinal, getName, getProtection, getStatic, getType, isAbstract, setAbstract, setComment, setFinal, setName, setProtection, setStatic, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaField

public JavaField(java.lang.String name,
                 java.lang.String type,
                 java.lang.String protection)
Creates a new JavaField


JavaField

public JavaField(java.lang.String name,
                 java.lang.String type)
Creates a new JavaField with default protection

Method Detail

toString

public java.lang.String toString(int indent)

Returns a string representation of this field.


setValue

public void setValue(java.lang.String pValue)

getValue

public java.lang.String getValue()