| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEntity
An interface of an entity. Entities may be in relations with each other.
If an entity is in a directed relation it treats it as an outbound (if the entity is the relation source) or inbound (if it is the relation target). If the relation is bi-directional it's perceived as bouth: inbound and outbound.
Entities and relations are elements of general data set.
 Both incoming and outgoing relations are properties of type PropertyType.REFERENCE_LIST.
IManyToManyRelation, 
GeneralDataSet, 
PropertyType| Nested Class Summary | |
|---|---|
static class | 
IEntity.Properties
Enumeration of property name constants.  | 
| Field Summary | |
|---|---|
static Type | 
TYPE
The type of single timed-relation elements.  | 
| Method Summary | |
|---|---|
 void | 
addIncomingRelation(IManyToManyRelation relation)
Adds a new incoming relation to the entity, if not present.  | 
 void | 
addOutgoingRelation(IManyToManyRelation relation)
Adds a new outgoing relation to the entity, if not present.  | 
 List<? extends IManyToManyRelation> | 
getIncomingRelations()
Returns the list of incoming relations associated with the entity.  | 
 String | 
getName()
Returns the entity name.  | 
 List<? extends IManyToManyRelation> | 
getOutgoingRelations()
Returns the list of outgoing relations associated with the entity.  | 
 boolean | 
removeIncomingRelation(IManyToManyRelation relation)
Removes the specified incoming relation from the entity.  | 
 boolean | 
removeOutgoingRelation(IManyToManyRelation relation)
Removes the specified outgoing relation from the entity.  | 
 void | 
setIncomingRelations(List<? extends IManyToManyRelation> relations)
Sets the list of incoming relations associated with the entity.  | 
 void | 
setName(String name)
Sets the entity name.  | 
 void | 
setOutgoingRelations(List<? extends IManyToManyRelation> relations)
Sets the list of outgoing relations associated with the entity.  | 
| Methods inherited from interface pl.edu.agh.cast.data.model.IElement | 
|---|
getDataSet | 
| Methods inherited from interface pl.edu.agh.cast.data.model.Identifiable | 
|---|
getId, getType | 
| Methods inherited from interface pl.edu.agh.cast.data.model.property.IPropertyContainer | 
|---|
addProperty, getCustomProperties, getMetaPropertyManager, getPermanentProperties, getProperties, getProperty, getTransientProperties, matches, removeProperty, setProperty | 
| Methods inherited from interface java.util.Observer | 
|---|
update | 
| Methods inherited from interface pl.edu.agh.cast.common.IValidatable | 
|---|
isValid | 
| Methods inherited from interface pl.edu.agh.cast.common.IDisposable | 
|---|
dispose | 
| Methods inherited from interface pl.edu.agh.cast.common.IReplicable | 
|---|
replicate, replicateTo | 
| Field Detail | 
|---|
static final Type TYPE
| Method Detail | 
|---|
@PropertyGetter(name="ENTITY_NAME",
                type=TEXT,
                matchable=true)
String getName()
@PropertySetter(name="ENTITY_NAME") void setName(String name)
name - entity name
@PropertyGetter(name="INCOMING_RELATIONS",
                type=REFERENCE_LIST,
                matchable=false)
List<? extends IManyToManyRelation> getIncomingRelations()
@PropertySetter(name="INCOMING_RELATIONS") void setIncomingRelations(List<? extends IManyToManyRelation> relations)
relations - list of incoming relations to setvoid addIncomingRelation(IManyToManyRelation relation)
relation - incoming relation to be added
IllegalArgumentException - when relation is nullboolean removeIncomingRelation(IManyToManyRelation relation)
relation - incoming relation to be removed, if present
true if the relation was present and successfully removed
IllegalArgumentException - when relation is null
@PropertyGetter(name="OUTGOING_RELATIONS",
                type=REFERENCE_LIST,
                matchable=false)
List<? extends IManyToManyRelation> getOutgoingRelations()
@PropertySetter(name="OUTGOING_RELATIONS") void setOutgoingRelations(List<? extends IManyToManyRelation> relations)
relations - list of outgoing relations to setvoid addOutgoingRelation(IManyToManyRelation relation)
relation - outgoing relation to be added
IllegalArgumentException - when relation is nullboolean removeOutgoingRelation(IManyToManyRelation relation)
relation - outgoing relation to be removed, if present
true if the relation was present and successfully removed
IllegalArgumentException - when relation is null
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||