org.xulux.api.dataprovider
Interface IField


public interface IField

The generic field interface..

Version:
$Id: IField.java,v 1.1 2005/12/18 12:58:24 mvdb Exp $
Author:
Martin van den Bemt

Method Summary
 java.lang.String getAlias()
           
 IMapping getMapping()
          Get the mapping this field is in
 java.lang.String getName()
           
 java.lang.Class getType()
           
 java.lang.Object getValue(java.lang.Object object)
           
 boolean isReadOnly()
           
 void setProperty(java.lang.String name, java.lang.String value)
          Set the property for the mapping
 java.lang.Object setValue(java.lang.Object object, java.lang.Object value)
          Sets the value of the object
 

Method Detail

getName

java.lang.String getName()
Returns:
the name of the field

getAlias

java.lang.String getAlias()
Returns:
the alias of the field

setValue

java.lang.Object setValue(java.lang.Object object,
                          java.lang.Object value)
Sets the value of the object

Parameters:
object - the object to set the value on
value - the value to set
Returns:
The changed object or the newly created object

getValue

java.lang.Object getValue(java.lang.Object object)
Parameters:
object - the object to get the value from
Returns:
the value of the field

isReadOnly

boolean isReadOnly()
Returns:
if a field is readonly or not

getType

java.lang.Class getType()
Returns:
the type of Object the field must create if the object has to be created

getMapping

IMapping getMapping()
Get the mapping this field is in

Returns:
the mapping

setProperty

void setProperty(java.lang.String name,
                 java.lang.String value)
Set the property for the mapping

Parameters:
name - the name of the property
value - the value of the property


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.