org.palo.api.impl
Class VariableImpl

java.lang.Object
  extended by org.palo.api.impl.VariableImpl
All Implemented Interfaces:
NamedEntity, PaloObject, Variable

public class VariableImpl
extends java.lang.Object
implements Variable


Field Summary
 
Fields inherited from interface org.palo.api.Variable
DATATYPE_ELEMENT, DATATYPE_FLOAT, INPUT_TYPE_MANDATORY, INPUT_TYPE_MANDATORY_NOT_INITIAL, INPUT_TYPE_OPTIONAL, SELECTION_TYPE_COMPLEX, SELECTION_TYPE_INTERVAL, SELECTION_TYPE_SINGLE
 
Method Summary
 int getDatatype()
           
 java.lang.String getId()
          Returns the unique identifier of this palo object.
 int getInputType()
           
 Element[] getInterval()
           
 java.lang.String getName()
          Returns the name of the entity.
 Element[] getPossibleValues()
           
 Element[] getSelectedElements()
           
 int getSelectionType()
           
 java.lang.String getText()
           
 Element getValue()
           
 void setInterval(Element from, Element to)
           
 void setPossibleValues(com.tensegrity.palojava.ElementInfo[] elements)
           
 void setSelectedElements(Element[] selectedElements)
           
 void setText(java.lang.String newText)
           
 void setValue(Element element)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInputType

public int getInputType()
Specified by:
getInputType in interface Variable

getInterval

public Element[] getInterval()
Specified by:
getInterval in interface Variable

getPossibleValues

public Element[] getPossibleValues()
Specified by:
getPossibleValues in interface Variable

getDatatype

public int getDatatype()
Specified by:
getDatatype in interface Variable

setPossibleValues

public void setPossibleValues(com.tensegrity.palojava.ElementInfo[] elements)

getSelectionType

public int getSelectionType()
Specified by:
getSelectionType in interface Variable

getValue

public Element getValue()
Specified by:
getValue in interface Variable

setInterval

public void setInterval(Element from,
                        Element to)
Specified by:
setInterval in interface Variable

getSelectedElements

public Element[] getSelectedElements()
Specified by:
getSelectedElements in interface Variable

setSelectedElements

public void setSelectedElements(Element[] selectedElements)
Specified by:
setSelectedElements in interface Variable

setValue

public void setValue(Element element)
Specified by:
setValue in interface Variable

getId

public java.lang.String getId()
Description copied from interface: PaloObject
Returns the unique identifier of this palo object.

Important note: for a correct usage please note that the returned id is only unique within the parent scope of this palo object. Furthermore in case of deletion the id is reused, i.e. if a palo object is removed its id could be given to a newly created palo object afterwards!!

Specified by:
getId in interface PaloObject
Returns:
id of the palo object.

getName

public java.lang.String getName()
Description copied from interface: NamedEntity
Returns the name of the entity.

Specified by:
getName in interface NamedEntity
Returns:
the name of the entity.

getText

public java.lang.String getText()
Specified by:
getText in interface Variable

setText

public void setText(java.lang.String newText)
Specified by:
setText in interface Variable