LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data
Interface LyField

All Known Implementing Classes:
LyArrayFieldInfo, LyAttributeField, LyChoiceFieldInfo, LyColumnField, LyDateFieldInfo, LyFieldInfo, LyFileFieldInfo, LyNumberFieldInfo, LyPeerField, LyPostgresqlField, LyRelationFieldInfo, LySqlColumnField, LyStructFieldInfo, LyTextFieldInfo, LyXmlField

public interface LyField

The field interface is used to represent a field of a LyClass.

A LyField is mainly defined by an identifier and a java class for storing effective values of this LyField.

This class is implemented by both physical fields ans logical fields (classes that both extends LyPeerField or LyFieldInfo).

See Also:
LyClass, LyPeerField, LyFieldInfo

Field Summary
static java.lang.String __VERSION
          File version
 
Method Summary
 LyValue buildFieldValue(java.lang.Object value)
          Builds the appropriate field value (LyValue) corresponding to this field from an untyped value object.
 java.lang.String getId()
          Gets identifier of this field.
 java.lang.Class<?> getValueClass()
          Gets the java class representation of the value of this field.
 

Field Detail

__VERSION

static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Method Detail

getId

java.lang.String getId()
Gets identifier of this field.

Returns:
Identifier of this field.

getValueClass

java.lang.Class<?> getValueClass()
Gets the java class representation of the value of this field.

Returns:
Java class used to represent values of this field.

buildFieldValue

LyValue buildFieldValue(java.lang.Object value)
Builds the appropriate field value (LyValue) corresponding to this field from an untyped value object. The returned value is an instance of an inherited class of LyValue that depends on the class of the given field.

Parameters:
value - Untyped value.
Returns:
A field value for the given field that corresponds to the specified value.

(c) January 2013 - W4 S.A.

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