|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRelation
The IRelation interface represents relations, which are by default displayed as connection between entities.
Each relation has its own id which is viewable by the user, so it should allow the identify the relation. However, in some cases (e.g. connection reported by two different companies may differ in format), the id may be represented differently.
Each relation has a source and target entity, it also belong to data sets. By default it belongs only to one data set, but in some cases (consider to billings for two differen numbers which contain the same connection) it may belong to more than one.
Method Summary | |
---|---|
void |
addDataSet(IDataSet set)
Add given data set to this relation. |
List<IDataSet> |
getDataSets()
The data sets which this relation belongs to. |
String |
getId()
The id of the relation (getter). |
IEntity |
getSource()
The source of the relation (getter). |
IEntity |
getTarget()
The target of the relation (getter). |
void |
setDataSets(List<IDataSet> set)
The data sets which this relation belongs to. |
void |
setId(String id)
The id of the relation (setter). |
void |
setSource(IEntity source)
The source of the relation (setter). |
void |
setTarget(IEntity target)
The target of the relation (setter). |
Methods inherited from interface pl.edu.agh.cast.model.mapper.Mappable |
---|
clone, getAttribute, getAttributeNames, getAttributeType, getMid, getType, setAttribute, setMid |
Method Detail |
---|
String getId()
getId
in interface Mappable
void setId(String id)
setId
in interface Mappable
id
- The id to setIEntity getSource()
void setSource(IEntity source)
source
- The source to setIEntity getTarget()
void setTarget(IEntity target)
target
- The targetList<IDataSet> getDataSets()
void setDataSets(List<IDataSet> set)
set
- The set of data sets to setvoid addDataSet(IDataSet set)
set
- The data set to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |