|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModel
The model interface represents single unit of work. One model may contain many data sets. The model name must be uniq
globally (i.e. within the Eclipse workspace).
The model primarly consists of entities and relations. The relations are organized into data sets.
Model corresponds to the IProject, but since it does not contain diagrams (while IProject does) it is separated from
it. The diagrams in the IProject contain some visual data (e.g. the entity icon) while IModel only contains "raw"
data.
The other difference is that in the default implementation the model is mapped to base model, while IProject is not
(it is kept in the Eclipse Workspace).
Method Summary | |
---|---|
boolean |
addDataSet(IDataSet dataSet)
Add data set to the collection of data sets. |
List<IDataSet> |
getDataSets()
Return all data sets which belong to this model. |
Collection<IEntity> |
getEntities()
Return all entities which are present in this model. |
String |
getName()
Model name getter. |
List<IRelation> |
getRelations()
Return all relations which belong to this model. |
void |
setDataSets(List<IDataSet> dataSets)
Data sets setter. |
void |
setName(String name)
Model name setter. |
Methods inherited from interface pl.edu.agh.cast.model.mapper.Mappable |
---|
clone, getAttribute, getAttributeNames, getAttributeType, getId, getMid, getType, setAttribute, setId, setMid |
Method Detail |
---|
List<IRelation> getRelations()
List<IDataSet> getDataSets()
void setDataSets(List<IDataSet> dataSets)
dataSets
- The data sets to set.boolean addDataSet(IDataSet dataSet)
dataSet
- The data set to add.
String getName()
void setName(String name)
name
- New name of the modelCollection<IEntity> getEntities()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |