|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LyClass
This interface represents the description of physical classes : classes from which datas are obtained to display logical objects presented to the end-user using Leonardi.
The enclosed methods represent the level of services requiered from these physical classes to be able to interface various types of datas.
Different kinds of methods are specified :
This interface is mainly implemented by physical classes on which logical classes are interfaced.
But it is also implemented by LyClassInfo, though this class represents logical classes. This allows to see a logical class as a physical class for another logical class.
LyField
,
LyPeerClass
,
LyClassInfo
,
LyDataSource
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Method Summary | |
---|---|
LyValueSet |
copy(java.lang.Object object1,
java.lang.Object object2)
Copies all field values of an instance of this class on another instance. |
LyDataSource |
getDataSource()
Gets the data source that manages all instances of this class. |
LyField |
getField(java.lang.String id)
Retrieves a field on this class by its identifier. |
java.util.Vector<? extends LyField> |
getFields()
Gets the list of fields of this class. |
java.lang.String |
getId()
Gets identifier of the class. |
java.util.Vector<? extends LyField> |
getIdFields()
Gets the list of fields that identifies instances of this class. |
java.lang.String |
getName()
Gets name of the class. |
java.lang.Class<?> |
getObjectClass()
Gets the physical representation of the instances : java class that really holds instances of this class. |
LyObjectId |
getObjectId(java.lang.Object object)
Gets identifier for an instance of this class. |
java.lang.Object |
getValue(java.lang.Object object,
LyField field)
Gets the value corresponding to the given field for an instance of this class. |
LyValueSet |
getValues(java.lang.Object object)
Gets all field values from an instance of this class. |
java.lang.Object |
newInstance()
Creates a new instance of this class. |
void |
rehash(java.lang.Object object)
Recompute the object id of the specified object. |
void |
setValue(java.lang.Object object,
LyField field,
java.lang.Object value)
Sets the value corresponding to the given field on an instance of this class. |
Field Detail |
---|
static final java.lang.String __VERSION
Method Detail |
---|
java.lang.String getId()
java.lang.String getName()
java.lang.Class<?> getObjectClass()
LyDataSource getDataSource()
java.util.Vector<? extends LyField> getIdFields()
java.util.Vector<? extends LyField> getFields()
LyField getField(java.lang.String id)
id
- Identifier of the searched field.
LyObjectId getObjectId(java.lang.Object object)
object
- Instance of this class.
java.lang.Object getValue(java.lang.Object object, LyField field)
object
- Instance of this class.field
- Field for which a value is requested.
void setValue(java.lang.Object object, LyField field, java.lang.Object value)
object
- Instance of this class on which a value is set.field
- Field for which a value is set.value
- Value set for the given field on the specified instance.LyValueSet copy(java.lang.Object object1, java.lang.Object object2)
object1
- Object on which values are copied.object2
- Object from which values are get.
LyValueSet getValues(java.lang.Object object)
object
- Instance of this class.
java.lang.Object newInstance() throws java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.IllegalAccessException
- If the class or initializer is not accessible.
java.lang.InstantiationException
- If an application tries to instantiate an abstract class or
an interface, or if the instantiation fails for some other
reason.void rehash(java.lang.Object object)
object
- object to rehash
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |