|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--UML.Code.Class
This class represent a Java class for which code is generated. Information collected for code generation is: class name, visibility, if abstract, imported packages, supercalsses, implemented interfaces, fields, methods.
| Field Summary | |
protected java.util.Vector |
attributes
|
protected java.lang.String |
header
|
protected java.util.Vector |
methods
|
protected java.lang.String |
name
|
protected java.util.Vector |
packages
|
protected java.lang.String |
visibility
|
| Constructor Summary | |
Class()
Constructor. |
|
| Method Summary | |
void |
add(Attribute attribute)
Adds an attribute to this class. |
void |
add(Generalization generalization)
Adds a superclass or an implemented interface to this class. |
void |
add(Method method)
Adds a method to this class. |
void |
add(Package pack)
Adds an imported package to this class. |
java.lang.String |
getCode()
Gets the code for this class. |
protected java.util.Vector |
getConstructors()
Determines all the constructor for this class. |
java.lang.String |
getName()
Gets the name of the class. |
protected java.lang.String |
getSupertypes()
Determines supertypes (classes and interfaces) for this class. |
java.lang.String |
getXmiUuid()
Gets the UUID (Universally Unique IDentifier) of the class. |
void |
setIsAbstract(boolean isAbstract)
Determines if the class is abstract. |
void |
setName(java.lang.String name)
Sets the name of the class. |
void |
setVisibility(java.lang.String visibility)
Sets the visibility of the class (public, private, protected or nothing). |
void |
setXmiUuid(java.lang.String xmiUuid)
Sets the UUID (Universally Unique IDentifier) of the class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String name
protected java.lang.String visibility
protected java.util.Vector packages
protected java.util.Vector attributes
protected java.util.Vector methods
protected java.lang.String header
| Constructor Detail |
public Class()
| Method Detail |
public void setName(java.lang.String name)
public java.lang.String getName()
name the name of the class.public void setXmiUuid(java.lang.String xmiUuid)
xmi.uuid).
public java.lang.String getXmiUuid()
xmi.uuid).
xmiUuid the UUID of the class.public void setVisibility(java.lang.String visibility)
public void setIsAbstract(boolean isAbstract)
public void add(Package pack)
public void add(Generalization generalization)
public void add(Attribute attribute)
public void add(Method method)
public java.lang.String getCode()
code the generated code.protected java.lang.String getSupertypes()
supertypes code generated for all the supertypes.protected java.util.Vector getConstructors()
constructor code generated for all the constructor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||