Class UmpleVariable

java.lang.Object
cruise.umple.compiler.UmpleVariable
Direct Known Subclasses:
AssociationVariable, Attribute, MethodParameter, UniqueIdentifier

public class UmpleVariable
extends java.lang.Object
Superclass for tracking member variables in all target languages TODO: Code smell because we have both an association variable and also an association This class should go and instead AssociationEnd should be the member variable
  • Constructor Summary

    Constructors 
    Constructor Description
    UmpleVariable​(java.lang.String aName, java.lang.String aType, java.lang.String aModifier, java.lang.String aValue)  
  • Method Summary

    Modifier and Type Method Description
    void delete()  
    java.lang.String getModifier()
    The modifier associated with the Umple variable.
    java.lang.String getName()
    The name of the Umple variable.
    java.util.List<TraceItem> getTraced​(java.lang.String method, UmpleClass uClass)
    Retrieve the AttributeTraceItem associated with this UmpleVariable
    java.lang.String getType()
    The type of the Umple variable.
    java.lang.String getUpperCaseName()  
    java.lang.String getValue()
    The value of the Umple variable.
    boolean isImmutable()  
    java.lang.String normalizeValue​(java.lang.String aType, java.lang.String aValue)  
    boolean setModifier​(java.lang.String aModifier)  
    boolean setName​(java.lang.String aName)  
    boolean setType​(java.lang.String aType)  
    boolean setValue​(java.lang.String aValue)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • UmpleVariable

      public UmpleVariable​(java.lang.String aName, java.lang.String aType, java.lang.String aModifier, java.lang.String aValue)
  • Method Details

    • setName

      public boolean setName​(java.lang.String aName)
    • setType

      public boolean setType​(java.lang.String aType)
    • setModifier

      public boolean setModifier​(java.lang.String aModifier)
    • setValue

      public boolean setValue​(java.lang.String aValue)
    • getName

      public java.lang.String getName()
      The name of the Umple variable.
    • getType

      public java.lang.String getType()
      The type of the Umple variable.
    • getModifier

      public java.lang.String getModifier()
      The modifier associated with the Umple variable. potential enum, 'settable'
    • getValue

      public java.lang.String getValue()
      The value of the Umple variable.
    • delete

      public void delete()
    • getUpperCaseName

      public java.lang.String getUpperCaseName()
    • isImmutable

      public boolean isImmutable()
    • normalizeValue

      public java.lang.String normalizeValue​(java.lang.String aType, java.lang.String aValue)
    • getTraced

      public java.util.List<TraceItem> getTraced​(java.lang.String method, UmpleClass uClass)
      Retrieve the AttributeTraceItem associated with this UmpleVariable
      Returns:
      Attribute_Traceitem for this UmpleVariable(either association or attribute);
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object