LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data
Class LyValue

java.lang.Object
  extended by leon.data.LyValue
Direct Known Subclasses:
LyFieldInfoValue, LyPeerFieldValue

public abstract class LyValue
extends java.lang.Object

This class is a field value, it implements a memory representation of a 'pair' [field, value].

This class is used when giving a set of values (LyValueSet) to create or modify an object.

This method is abstract. It has two main inherited sub-classes :

See Also:
LyField, LyFieldInfo, LyFieldInfoValue, LyPeerField, LyPeerFieldValue, LyValueSet

Field Summary
static java.lang.String __VERSION
          File version
 
Method Summary
 LyField getField()
          Gets the field for which this field value was created.
 java.lang.String getString()
          Gets the value that was given to the field as a String.
 java.lang.Object getValue()
          Gets the value that was given to the field.
 boolean isNull()
          Checks if this value associated to the field is null.
 void setValue(java.lang.Object value)
          Sets the value of this field value.
 java.lang.String toString()
          Returns this value as a string representation for debug / dump.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Method Detail

getField

public final LyField getField()
Gets the field for which this field value was created.

Returns:
Field of this field value.

getValue

public final java.lang.Object getValue()
Gets the value that was given to the field.

Returns:
Value of this field value.

getString

public java.lang.String getString()
Gets the value that was given to the field as a String. This String value is an internal value and is usually not shown to the end user. This method is overriden to be more accurate by subclass LyFieldInfoValue.

Returns:
Value of this field value as a String or null if no value is set.

isNull

public final boolean isNull()
Checks if this value associated to the field is null.

Returns:
Value of this field value.

setValue

public void setValue(java.lang.Object value)
Sets the value of this field value.

Parameters:
value - Value assigned to this field value.
Throws:
java.lang.IllegalArgumentException - If the class of the field is not assignable from the given value.

toString

public java.lang.String toString()
Returns this value as a string representation for debug / dump. The format returned is LyValue(=). To get the String representation without text format, use getString() instead.

Overrides:
toString in class java.lang.Object
Returns:
String representing his field value.
See Also:
getString()

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com