pl.edu.agh.cast.model.base
Interface IDataSet

All Superinterfaces:
IDataProvider, Mappable
All Known Implementing Classes:
DataSet

public interface IDataSet
extends Mappable, IDataProvider

The DataSet interface represents the set of data (i.e. relations), which were imported or constructed as a group. It must have a name (i.e. id) unique within a model which it belongs to.

Author:
AGH CAST Team

Method Summary
 void addRelation(IRelation relation)
          Add relation to this data set.
 Collection<IEntity> getEntities()
          Return all entities present in this data set.
 String getId()
          Return the id of the data set.
 IModel getModel()
          Model getter.
 String getModelExtensionId()
          Returns the ID of the model extension (see pl.edu.agh.cast.model Extension Point) which defines this data set.
 List<IRelation> getRelations()
          Return relations present in this data set.
 void setId(String id)
          Set the id of the data set.
 void setModel(IModel model)
          Model setter.
 void setModelExtensionId(String id)
          Sets the ID of the model extension (see pl.edu.agh.cast.model Extension Point) which defines this data set.
 void setRelations(List<IRelation> relations)
          Sets the relations of this data set.
 
Methods inherited from interface pl.edu.agh.cast.model.mapper.Mappable
clone, getAttribute, getAttributeNames, getAttributeType, getMid, getType, setAttribute, setMid
 

Method Detail

getId

String getId()
Return the id of the data set. Data set id is uniq within the model.

Specified by:
getId in interface Mappable
Returns:
The id of the billing.

setId

void setId(String id)
Set the id of the data set. Data set id must be uniq within the model.

Specified by:
setId in interface Mappable
Parameters:
id - The id to set.

getModel

IModel getModel()
Model getter.

Returns:
the model

setModel

void setModel(IModel model)
Model setter.

Parameters:
model - the model to set

getRelations

List<IRelation> getRelations()
Return relations present in this data set.

Returns:
List of relations

setRelations

void setRelations(List<IRelation> relations)
Sets the relations of this data set.

Parameters:
relations - List of relations to set

addRelation

void addRelation(IRelation relation)
Add relation to this data set. Automatically adds this data set to the relation's data set collection.

Parameters:
relation - Relation to add.

getEntities

Collection<IEntity> getEntities()
Return all entities present in this data set.

Returns:
Collection of entities.

getModelExtensionId

String getModelExtensionId()
Returns the ID of the model extension (see pl.edu.agh.cast.model Extension Point) which defines this data set.

Returns:
The ID of the model extension.

setModelExtensionId

void setModelExtensionId(String id)
Sets the ID of the model extension (see pl.edu.agh.cast.model Extension Point) which defines this data set.

Parameters:
id - The ID of the model extension


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.