org.apache.ws.jaxme.js
Class JavaSourceObject

java.lang.Object
  extended by org.apache.ws.jaxme.js.IndentationEngineImpl
      extended by org.apache.ws.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.


Field Summary
 
Fields inherited from interface org.apache.ws.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()
          Returns the class, to which this JavaSource object belongs.
 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 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
 
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(org.apache.ws.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(org.apache.ws.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()
Returns the class, to which this JavaSource object belongs.