de.ispsoft.jaxme.generator.javasource
Class JavaSourceObject

java.lang.Object
  extended byde.ispsoft.jaxme.generator.javasource.JavaSourceObject
Direct Known Subclasses:
JavaField, JavaMethod

public abstract class JavaSourceObject
extends java.lang.Object

This class implements a generic JavaSource object.

Author:
Jochen Wiedmann

Constructor Summary
JavaSourceObject()
           
 
Method Summary
 JavaComment getComment()
          Returns a comment describing this JavaSource object.
 boolean getFinal()
          Returns whether this is a final JavaSource object.
 java.lang.String getName()
          Returns this JavaSource objects name.
 java.lang.String getProtection()
          Returns this JavaSource objects protection.
 boolean getStatic()
          Returns whether this is a static JavaSource object.
 java.lang.String getType()
          Returns this JavaSource objects type.
 boolean isAbstract()
          Returns whether this JavaSource object is abstract.
 void setAbstract(boolean isAbstract)
          Sets whether this JavaSource object is abstract,
 void setComment(JavaComment jc)
          Sets a comment describing this JavaSource object.
 void setFinal(boolean isFinal)
          Sets whether this is a final JavaSource object.
 void setName(java.lang.String n)
          Sets this JavaSource objects name.
 void setProtection(java.lang.String p)
          Sets this JavaSource objects protection.
 void setStatic(boolean isStatic)
          Sets whether this is a static JavaSource object.
 void setType(java.lang.String t)
          Sets this JavaSource objects type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSourceObject

public JavaSourceObject()
Method Detail

getName

public java.lang.String getName()

Returns this JavaSource objects name.

See Also:
setName(java.lang.String)

setName

public void setName(java.lang.String n)

Sets this JavaSource objects name.

See Also:
getName()

getFinal

public boolean getFinal()

Returns whether this is a final JavaSource object.

See Also:
setFinal(boolean)

setFinal

public void setFinal(boolean isFinal)

Sets whether this is a final JavaSource object.

See Also:
getFinal()

getStatic

public boolean getStatic()

Returns whether this is a static JavaSource object.

See Also:
setStatic(boolean)

setStatic

public void setStatic(boolean isStatic)

Sets whether this is a static JavaSource object.

See Also:
getStatic()

getType

public java.lang.String getType()

Returns this JavaSource objects type.

See Also:
setType(java.lang.String)

setType

public void setType(java.lang.String t)

Sets this JavaSource objects type.

See Also:
getType()

getProtection

public java.lang.String getProtection()

Returns this JavaSource objects protection.

Returns:
null, "public", "protected" or "private"
See Also:
setProtection(java.lang.String)

setProtection

public void setProtection(java.lang.String p)

Sets this JavaSource objects protection.

Parameters:
p - null, "public", "protected" or "private"
See Also:
getProtection()

getComment

public JavaComment getComment()

Returns a comment describing this JavaSource object.

See Also:
getComment()

setComment

public void setComment(JavaComment jc)

Sets a comment describing this JavaSource object. Use null to remove a comment.

See Also:
getComment()

isAbstract

public boolean isAbstract()

Returns whether this JavaSource object is abstract.


setAbstract

public void setAbstract(boolean isAbstract)

Sets whether this JavaSource object is abstract,