org.apache.ws.jaxme.js

Class JavaSourceObject

Implemented Interfaces:
IndentationEngine
Known Direct Subclasses:
ConditionalIndentationJavaSourceObject, JavaField

public abstract class JavaSourceObject
extends IndentationEngineImpl

This class implements a generic JavaSource object.

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

NOTHING

Constructor Summary

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

Method Summary

JavaComment
getComment()
Returns a comment describing this JavaSource object.
JavaSource
getJavaSource()
Returns the class, to which this JavaSource object belongs.
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(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 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

Constructor Details

JavaSourceObject

protected JavaSourceObject(String pName,
                           String pType)

JavaSourceObject

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

JavaSourceObject

protected JavaSourceObject(String pName,
                           JavaQName pType)

JavaSourceObject

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

Method Details

getComment

public JavaComment getComment()
Returns a comment describing this JavaSource object.
See Also:
newComment()

getJavaSource

public JavaSource getJavaSource()
Returns the class, to which this JavaSource object belongs.

getName

public String getName()
Returns this JavaSource objects name.

getProtection

public JavaSource.Protection getProtection()
Returns this JavaSource objects protection.

getType

public JavaQName getType()
Returns this JavaSource objects type.

isAbstract

public boolean isAbstract()
Returns whether this JavaSource object is abstract.

isFinal

public boolean isFinal()
Returns whether this is a final JavaSource object.

isStatic

public boolean isStatic()
Returns whether this is a static JavaSource object.

newComment

public JavaComment newComment()
Creates a new Javadoc comment describing this JavaSource object.
See Also:
getComment()

setAbstract

public void setAbstract(boolean isAbstract)
Sets whether this JavaSource object is abstract.

setFinal

public void setFinal(boolean pFinal)
Sets whether this is a final JavaSource object.

setJavaSource

protected void setJavaSource(JavaSource pSource)

setName

public void setName(String n)
Sets this JavaSource objects name.

setProtection

public void setProtection(JavaSource.Protection p)
Sets this JavaSource objects protection.
Parameters:
p - null, "public", "protected" or "private"

setStatic

public void setStatic(boolean pStatic)
Sets whether this is a static JavaSource object.

setType

public void setType(JavaQName t)
Sets this JavaSource objects type.
See Also:
getType()