org.colos.ejs.library.utils
Class ModelElementsUtilities

java.lang.Object
  extended by org.colos.ejs.library.utils.ModelElementsUtilities

public class ModelElementsUtilities
extends java.lang.Object

A class of utilities for model elements

Version:
1.0, August 2010
Author:
Francisco Esquembre

Constructor Summary
ModelElementsUtilities()
           
 
Method Summary
static java.lang.String getPureValue(java.lang.String _value)
          Gets the pure value, either the name of the model variable or the constant value
static java.lang.String getQuotedValue(java.lang.String _value)
          Gets the value within quotes, either the name of the model variable or the constant value
static java.lang.String getValue(Model _model, java.lang.String _value)
          Returns the value of a constant String (by removing its quotes), or that of a String variable of the model
static boolean isLinkedToVariable(java.lang.String _value)
          Whether the value is linked to a model variable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelElementsUtilities

public ModelElementsUtilities()
Method Detail

isLinkedToVariable

public static boolean isLinkedToVariable(java.lang.String _value)
Whether the value is linked to a model variable

Parameters:
_value -
Returns:

getPureValue

public static java.lang.String getPureValue(java.lang.String _value)
Gets the pure value, either the name of the model variable or the constant value

Parameters:
_value -
Returns:

getQuotedValue

public static java.lang.String getQuotedValue(java.lang.String _value)
Gets the value within quotes, either the name of the model variable or the constant value

Parameters:
_value -
Returns:

getValue

public static java.lang.String getValue(Model _model,
                                        java.lang.String _value)
Returns the value of a constant String (by removing its quotes), or that of a String variable of the model

Returns: