net.sf.jaxme.js
Class JavaSourceObject

java.lang.Object
  extended bynet.sf.jaxme.js.IndentationEngineImpl
      extended bynet.sf.jaxme.js.JavaSourceObject
All Implemented Interfaces:
IndentationEngine
Direct Known Subclasses:
ConditionalIndentationJavaSourceObject, JavaField

public abstract class JavaSourceObject
extends IndentationEngineImpl

This class implements a generic JavaSource object.

Author:
Jochen Wiedmann

Field Summary
 
Fields inherited from interface net.sf.jaxme.js.IndentationEngine
NOTHING
 
Constructor Summary
protected JavaSourceObject(java.lang.String pName, JavaQName pType)
           
protected JavaSourceObject(java.lang.String pName, JavaQName pType, JavaSource.Protection pProtection)
           
protected JavaSourceObject(java.lang.String pName, java.lang.String pType)
           
protected JavaSourceObject(java.lang.String pName, java.lang.String pType, JavaSource.Protection pProtection)
           
 
Method Summary
 JavaComment getComment()
          Returns a comment describing this JavaSource object.
 JavaSource getJavaSource()
           
 java.lang.String getName()
          Returns this JavaSource objects name.
 JavaSource.Protection getProtection()
          Returns this JavaSource objects protection.
 JavaQName getType()
          Returns this JavaSource objects type.
 boolean isAbstract()
          Returns whether this JavaSource object is abstract.
 boolean isFinal()
          Returns whether this is a final JavaSource object.
 boolean isStatic()
          Returns whether this is a static JavaSource object.
 JavaComment newComment()
          Creates a new Javadoc comment describing this JavaSource object.
 void setAbstract(boolean isAbstract)
          Sets whether this JavaSource object is abstract,
 void setFinal(boolean pFinal)
          Sets whether this is a final JavaSource object.
protected  void setJavaSource(JavaSource pSource)
           
 void setName(java.lang.String n)
          Sets this JavaSource objects name.
 void setProtection(JavaSource.Protection p)
          Sets this JavaSource objects protection.
 void setStatic(boolean pStatic)
          Sets whether this is a static JavaSource object.
 void setType(JavaQName t)
          Sets this JavaSource objects type.
 
Methods inherited from class net.sf.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSourceObject

protected JavaSourceObject(java.lang.String pName,
                           JavaQName pType,
                           JavaSource.Protection pProtection)

JavaSourceObject

protected JavaSourceObject(java.lang.String pName,
                           JavaQName pType)

JavaSourceObject

protected JavaSourceObject(java.lang.String pName,
                           java.lang.String pType,
                           JavaSource.Protection pProtection)

JavaSourceObject

protected JavaSourceObject(java.lang.String pName,
                           java.lang.String pType)
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()

isFinal

public boolean isFinal()

Returns whether this is a final JavaSource object.

See Also:
setFinal(boolean)

setFinal

public void setFinal(boolean pFinal)

Sets whether this is a final JavaSource object.

See Also:
isFinal()

isStatic

public boolean isStatic()

Returns whether this is a static JavaSource object.

See Also:
setStatic(boolean)

setStatic

public void setStatic(boolean pStatic)

Sets whether this is a static JavaSource object.

See Also:
isStatic()

getType

public JavaQName getType()

Returns this JavaSource objects type.

See Also:
setType(net.sf.jaxme.js.JavaQName)

setType

public void setType(JavaQName t)

Sets this JavaSource objects type.

See Also:
getType()

getProtection

public JavaSource.Protection getProtection()

Returns this JavaSource objects protection.

See Also:
setProtection(net.sf.jaxme.js.JavaSource.Protection)

setProtection

public void setProtection(JavaSource.Protection 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:
newComment()

newComment

public JavaComment newComment()

Creates a new Javadoc comment describing this JavaSource object.

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,


setJavaSource

protected void setJavaSource(JavaSource pSource)

getJavaSource

public JavaSource getJavaSource()