pl.edu.agh.cast.data.model.general
Interface IGeneralDataSet<T extends IGeneralElement>

Type Parameters:
T - type of contained elements
All Superinterfaces:
IDataSet<T>, Identifiable, IDisposable, IDomainDataSet<T>, IPropertyContainer, IValidatable, Observer, Serializable
All Known Implementing Classes:
GeneralDataSet, SampleGeneralDataSet

public interface IGeneralDataSet<T extends IGeneralElement>
extends IDomainDataSet<T>

General data set which is set of entities (IEntity) connected with relations (IManyToManyRelation). It can contain alone entities (without any associated relations) but each relation has to be associated with at least two entities.

Author:
AGH CAST Team

Nested Class Summary
 
Nested classes/interfaces inherited from interface pl.edu.agh.cast.data.model.IDataSet
IDataSet.Properties
 
Field Summary
static Collection<Type> ACCEPTED_TYPES
          Collection of element types accepted by this type of data set.
static Type TYPE
          The type of IGeneralDataSet.
 
Method Summary
 Collection<IEntity> getEntities()
          Returns all entities contained in the data set.
 Collection<IManyToManyRelation> getRelations()
          Returns all relations (many-to-many) contained in the data set.
 
Methods inherited from interface pl.edu.agh.cast.data.model.domain.IDomainDataSet
getDescriptor, getSourceDate, getSourceDescription, getSourceName, setSourceDate, setSourceDescription, setSourceName
 
Methods inherited from interface pl.edu.agh.cast.data.model.IDataSet
addElement, addElements, addElements, addMetaPropertyManager, addMetaPropertyManagersForAcceptedTypes, getAcceptedTypes, getAssignableElements, getCreationDate, getElement, getElementCount, getElements, getElements, getElementTypes, getMetaPropertyManager, getMetaPropertyManagers, getName, getRegisteredTypes, removeElement, removeElement, removeElements, removeElements, setCreationDate, setElements, setName
 
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
 

Field Detail

TYPE

static final Type TYPE
The type of IGeneralDataSet.


ACCEPTED_TYPES

static final Collection<Type> ACCEPTED_TYPES
Collection of element types accepted by this type of data set.

Method Detail

getEntities

Collection<IEntity> getEntities()
Returns all entities contained in the data set.

Returns:
collection of all entities from the data set; if data set contains no entities then an empty collection

getRelations

Collection<IManyToManyRelation> getRelations()
Returns all relations (many-to-many) contained in the data set.

Returns:
collection of all many-to-many relations from the data set; if data set contains no relations then an empty collection


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