UML.Code
Class Attribute

java.lang.Object
  |
  +--UML.Code.Attribute

public class Attribute
extends java.lang.Object

Attribute class represent an attribute of the Java class for which code is generated.


Constructor Summary
Attribute()
          Constructor.
 
Method Summary
 java.lang.String getCode()
          Gets the code for the declaration of this attribute.
 void setChangeability(java.lang.String changeability)
          Sets the changeability status of the attribute (i.e. if final).
 void setMultiplicity(int multiplicity)
          Sets the multiplicity of the attribute.
 void setName(java.lang.String name)
          Sets the name of the attribute.
 void setOwnerScope(java.lang.String ownerScope)
          Sets the ownerScope value for the attribute (classifier or instance).
 void setType(java.lang.String type)
          Sets the type of the attribute (class,interface or datatype (i.e. primitive type)).
 void setTypename(java.lang.String typename)
          Sets the name of type of the attribute (e.g. int, String, Object, boolean ecc.).
 void setVisibility(java.lang.String visibility)
          Sets the visibility of the attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute()
Constructor.

Method Detail

setName

public void setName(java.lang.String name)
Sets the name of the attribute.


setType

public void setType(java.lang.String type)
Sets the type of the attribute (class,interface or datatype (i.e. primitive type)).


setTypename

public void setTypename(java.lang.String typename)
Sets the name of type of the attribute (e.g. int, String, Object, boolean ecc.).


setVisibility

public void setVisibility(java.lang.String visibility)
Sets the visibility of the attribute.


setMultiplicity

public void setMultiplicity(int multiplicity)
Sets the multiplicity of the attribute.


setChangeability

public void setChangeability(java.lang.String changeability)
Sets the changeability status of the attribute (i.e. if final).


setOwnerScope

public void setOwnerScope(java.lang.String ownerScope)
Sets the ownerScope value for the attribute (classifier or instance).


getCode

public java.lang.String getCode()
Gets the code for the declaration of this attribute.

Returns:
code the generated code.