net.sf.dc.core.objects
Class DCValue

java.lang.Object
  extended bynet.sf.dc.core.objects.DCValue

public class DCValue
extends java.lang.Object

Value definition for a Data Crow object

Since:
1.3
Version:
1.00
Author:
Robert-Jan van der Waals

Constructor Summary
DCValue()
           
 
Method Summary
 java.lang.String getDisplayString(int fieldType)
           
 java.lang.Object getValue()
          Returns the object value represented by the DCValue
 java.lang.String getValueAsString()
          Returns the value represented by the DCValue as a string
 boolean isChanged()
          Indicates whether the value has been changed
 void setChanged(boolean b)
          Mark a value as beign changed
 void setValue(java.lang.Object o, DCFieldDefinition field)
          Applies a value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DCValue

public DCValue()
Method Detail

isChanged

public boolean isChanged()
Indicates whether the value has been changed


setChanged

public void setChanged(boolean b)
Mark a value as beign changed


setValue

public void setValue(java.lang.Object o,
                     DCFieldDefinition field)
Applies a value

Parameters:
o - the value to be applied
field - the field definition to which this value belongs

getValue

public java.lang.Object getValue()
Returns the object value represented by the DCValue


getValueAsString

public java.lang.String getValueAsString()
Returns the value represented by the DCValue as a string


getDisplayString

public java.lang.String getDisplayString(int fieldType)