se.cambio.cds.gdl.model.expression
Class Variable

Package class diagram package Variable
java.lang.Object
  extended by se.cambio.cds.gdl.model.expression.ExpressionItem
      extended by se.cambio.cds.gdl.model.expression.Variable

public class Variable
extends ExpressionItem


Constructor Summary
Variable(String code)
           
Variable(String code, String name)
           
Variable(String code, String name, String path)
           
Variable(String code, String name, String path, String attribute)
           
 
Method Summary
static Variable createByCode(String code)
           
static Variable createByPath(String path)
           
 boolean equals(Object obj)
           
 String getAttribute()
           
 String getCode()
           
 String getName()
           
 String getPath()
           
 int hashCode()
           
 String toString()
          String representation of a variable as one of the following 1. code 2.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variable

public Variable(String code,
                String name,
                String path,
                String attribute)

Variable

public Variable(String code,
                String name)

Variable

public Variable(String code,
                String name,
                String path)

Variable

public Variable(String code)
Method Detail

createByCode

public static Variable createByCode(String code)

createByPath

public static Variable createByPath(String path)

getName

public String getName()
Returns:
the name

getCode

public String getCode()
Returns:
the code

getPath

public String getPath()
Returns:
the path

toString

public String toString()
String representation of a variable as one of the following 1. code 2. code|name| 3. code.attribute 4. code|name|.attribute 5. path

Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getAttribute

public String getAttribute()
Returns:
the attribute


Copyright © 2013 Cambio. All Rights Reserved.