org.apache.ws.jaxme.js

Class JavaSourceObject

public abstract class JavaSourceObject extends IndentationEngineImpl

This class implements a generic JavaSource object.
Constructor Summary
protected JavaSourceObject(String pName, JavaQName pType, JavaSource.Protection pProtection)
protected JavaSourceObject(String pName, JavaQName pType)
protected JavaSourceObject(String pName, String pType, JavaSource.Protection pProtection)
protected JavaSourceObject(String pName, String pType)
Method Summary
JavaCommentgetComment()
Returns a comment describing this JavaSource object.
JavaSourcegetJavaSource()
Returns the class, to which this JavaSource object belongs.
StringgetName()
Returns this JavaSource objects name.
JavaSource.ProtectiongetProtection()
Returns this JavaSource objects protection.
JavaQNamegetType()
Returns this JavaSource objects type.
booleanisAbstract()
Returns whether this JavaSource object is abstract.
booleanisFinal()
Returns whether this is a final JavaSource object.
booleanisStatic()
Returns whether this is a static JavaSource object.
JavaCommentnewComment()
Creates a new Javadoc comment describing this JavaSource object.
voidsetAbstract(boolean isAbstract)
Sets whether this JavaSource object is abstract.
voidsetFinal(boolean pFinal)
Sets whether this is a final JavaSource object.
protected voidsetJavaSource(JavaSource pSource)
voidsetName(String n)
Sets this JavaSource objects name.
voidsetProtection(JavaSource.Protection p)
Sets this JavaSource objects protection.
voidsetStatic(boolean pStatic)
Sets whether this is a static JavaSource object.
voidsetType(JavaQName t)
Sets this JavaSource objects type.

Constructor Detail

JavaSourceObject

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

JavaSourceObject

protected JavaSourceObject(String pName, JavaQName pType)

JavaSourceObject

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

JavaSourceObject

protected JavaSourceObject(String pName, String pType)

Method Detail

getComment

public JavaComment getComment()
Returns a comment describing this JavaSource object.

See Also: JavaSourceObject

getJavaSource

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

getName

public String getName()
Returns this JavaSource objects name.

See Also: JavaSourceObject

getProtection

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

See Also: JavaSourceObject

getType

public JavaQName getType()
Returns this JavaSource objects type.

See Also: JavaSourceObject

isAbstract

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

isFinal

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

See Also: JavaSourceObject

isStatic

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

See Also: JavaSourceObject

newComment

public JavaComment newComment()
Creates a new Javadoc comment describing this JavaSource object.

See Also: JavaSourceObject

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.

See Also: isFinal

setJavaSource

protected void setJavaSource(JavaSource pSource)

setName

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

See Also: JavaSourceObject

setProtection

public void setProtection(JavaSource.Protection p)
Sets this JavaSource objects protection.

Parameters: p null, "public", "protected" or "private"

See Also: JavaSourceObject

setStatic

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

See Also: isStatic

setType

public void setType(JavaQName t)
Sets this JavaSource objects type.

See Also: JavaSourceObject