|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--arom.kernel.AromObject
|
+--arom.kernel.AromEntity
|
+--arom.kernel.AromRecord
This is an abstract superclass for classes that represents "instances" of AROM structures (class or association). There are two different type of AROM instances :
AromInstance for instances of AROM classes.
AromTuple for instances of AROM associations.
| Field Summary | |
protected Vector |
recordListeners
The listeners of the record. |
protected Vector |
values
The accessor's values. values[i] is the value of the accessor of index i. |
| Fields inherited from class arom.kernel.AromEntity |
alive,
entityListeners,
kb,
name,
namePredicate |
| Fields inherited from class arom.kernel.AromObject |
bundle,
doc,
predicates |
| Constructor Summary | |
AromRecord()
|
|
| Method Summary | |
void |
addAromRecordListener(AromRecordListener listener)
Add and AromRecordListener to this AROM record. |
void |
delete()
Delete the record from the knowledge base. |
protected void |
fireAromRecordEvent(AromRecordEvent event)
Send notification to all the record listeners. |
Object |
getAccessorValue(AromAccessor a)
Returns the value of the specified accessor. |
Object |
getAccessorValue(String accessName)
Returns the value of the accessor specified by it's name. |
protected void |
insertInKb(AromKb kb,
AromStructure struct)
Insert the record in the specified knowledge base and associate it with the specified structure. |
AromStructure |
isA()
Returns the arom structure of this record. |
boolean |
isRecordOf(AromStructure struct)
Returns true if this record is an "instance" of the specified structure. |
void |
removeAromRecordListener(AromRecordListener listener)
Remove the AromRecordListener to the listener list of this record. |
void |
setAccessorValue(AromAccessor a,
Object val)
Sets the value of the specified accessor. |
void |
setAccessorValue(String accessName,
Object val)
Sets the value of the specified accessor. |
String |
toString()
Returns a string representation of this record. |
Iterator |
values()
Returns an iterator over the accessor's values for this record. |
| Methods inherited from class arom.kernel.AromEntity |
addAromEntityListener,
fireAromEntityEvent,
getKb,
getName,
isAlive,
removeAromEntityListener,
setDocumentation,
setName,
write |
| Methods inherited from class arom.kernel.AromObject |
check,
check,
getDocumentation |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected Vector values
protected Vector recordListeners
| Constructor Detail |
public AromRecord()
| Method Detail |
protected void insertInKb(AromKb kb, AromStructure struct)
kb - the knowledge basestruct - la classe ou la association à laquelle j'appartienspublic void delete()
public Object getAccessorValue(AromAccessor a)
AromIllegalArgumentException is thrown. This is necessary
since the value of the accessor can be null.a - the accessorObject) of the accessor.public Object getAccessorValue(String accessName) throws AromEntityNotFoundException
accessName - the name of the accessor.Object) of the accessor.public void setAccessorValue(AromAccessor a, Object val) throws AromIllegalSetValueException
a - the accessor to modify.val - the new value (a Java Object) of the accessor.- Throws:
- AromIllegalSetValueException - if the accessor is not an accessor of this record.
public void setAccessorValue(String accessName, Object val) throws AromEntityNotFoundException, AromIllegalSetValueException
accessName - the name of the accessor to modify.val - the new value (a Java Object) of the accessor.public AromStructure isA()
public Iterator values()
public boolean isRecordOf(AromStructure struct)
struct - the structure to test.public String toString()
AromRecord override this method.public void addAromRecordListener(AromRecordListener listener)
listener - the AromRecordListener to add to the record listeners.public void removeAromRecordListener(AromRecordListener listener)
listener - the AromRecordListener to remove to the record listeners.protected void fireAromRecordEvent(AromRecordEvent event)
event - the AromRecordEvent describing changes of the record.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||