|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.model.mapper.AbstractMappable
pl.edu.agh.cast.model.base.DataSet
@Mapping public class DataSet
The default implementation of the IDataSet interface. It is mapped to the base model.
IDataSet
,
The data set is mapped to the base model.
,
Serialized FormField Summary | |
---|---|
protected IModel |
model
The model which this data set belongs to. |
protected List<Relation> |
relations
List of relations |
Fields inherited from class pl.edu.agh.cast.model.mapper.AbstractMappable |
---|
id |
Constructor Summary | |
---|---|
DataSet()
Constructor needed by the mapping mechanism. |
|
DataSet(String id)
The default constructor. |
|
DataSet(String id,
IModel model)
The parametrized constructor. |
Method Summary | |
---|---|
void |
addRelation(IRelation relation)
Add relation to this data set. |
boolean |
equals(Object other)
|
Collection<IEntity> |
getEntities()
Return all entities present in this 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. |
int |
hashCode()
|
void |
setModel(IModel newModel)
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. |
String |
toString()
|
Methods inherited from class pl.edu.agh.cast.model.mapper.AbstractMappable |
---|
clone, getAttribute, getAttributeNames, getAttributeType, getId, getMid, getType, setAttribute, setId, setMid |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface pl.edu.agh.cast.model.base.IDataSet |
---|
getId, setId |
Methods inherited from interface pl.edu.agh.cast.model.mapper.Mappable |
---|
clone, getAttribute, getAttributeNames, getAttributeType, getMid, getType, setAttribute, setMid |
Field Detail |
---|
protected List<Relation> relations
protected IModel model
Constructor Detail |
---|
public DataSet()
public DataSet(String id)
id
- The id of the data set.public DataSet(String id, IModel model)
id
- The id of the data set.model
- The model which this data set belongs to.Method Detail |
---|
@MapLink(name="modelDataSet") public IModel getModel()
IDataSet
getModel
in interface IDataSet
public void setModel(IModel newModel)
IDataSet
setModel
in interface IDataSet
newModel
- the model to set@MapLink(name="dataSetRelations", direction=DST) public List<IRelation> getRelations()
getRelations
in interface IDataSet
IDataSet.getRelations()
public void setRelations(List<IRelation> relations)
setRelations
in interface IDataSet
relations
- List of relations to setIDataSet.setRelations(java.util.List)
public void addRelation(IRelation relation)
addRelation
in interface IDataSet
relation
- Relation to add.IDataSet.addRelation(pl.edu.agh.cast.model.base.IRelation)
public Collection<IEntity> getEntities()
getEntities
in interface IDataSet
IDataSet.getEntities()
public String toString()
toString
in class AbstractMappable
AbstractMappable.toString()
@MapAttribute(typeName="ModelExtensionId") public String getModelExtensionId()
getModelExtensionId
in interface IDataSet
IDataSet.getModelExtensionId()
public void setModelExtensionId(String id)
setModelExtensionId
in interface IDataSet
id
- The ID of the model extensionIDataSet.setModelExtensionId(java.lang.String)
public boolean equals(Object other)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |