pl.edu.agh.cast.data.model.presentation
Class PresentationDataSetDescriptor

java.lang.Object
  extended by pl.edu.agh.cast.data.model.DataSetDescriptor
      extended by pl.edu.agh.cast.data.model.presentation.PresentationDataSetDescriptor
All Implemented Interfaces:
Serializable, IValidatable, Identifiable

public final class PresentationDataSetDescriptor
extends DataSetDescriptor

Enhanced descriptor of a domain data set (see IPresentationDataSet).

Author:
AGH CAST Team
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface pl.edu.agh.cast.data.model.Identifiable
Identifiable.Properties
 
Constructor Summary
PresentationDataSetDescriptor()
          Default constructor.
PresentationDataSetDescriptor(Type type)
          Initializes descriptor with type.
PresentationDataSetDescriptor(Type type, String name)
          Constructor for descriptors of new data sets.
PresentationDataSetDescriptor(UUID id, Type type, String name, Date creationDate)
          Constructor.
 
Method Summary
 
Methods inherited from class pl.edu.agh.cast.data.model.DataSetDescriptor
checkIfValid, equals, getCreationDate, getId, getName, getType, hashCode, isValid, setCreationDate, setId, setName, setType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PresentationDataSetDescriptor

public PresentationDataSetDescriptor()
Default constructor.

Usage of this constructor is discouraged, since it does not provide any integrity control. If, however, this constructor is used, the DataSetDescriptor.isValid() method should be called in order to check the integrity.


PresentationDataSetDescriptor

public PresentationDataSetDescriptor(Type type)
Initializes descriptor with type.

The ID has to be set manually - until then the data set descriptor is invalid.

Parameters:
type - the data set type

PresentationDataSetDescriptor

public PresentationDataSetDescriptor(Type type,
                                     String name)
Constructor for descriptors of new data sets.

The new descriptor has a random ID and current creation date.

Parameters:
type - the data set type
name - the data set name

PresentationDataSetDescriptor

public PresentationDataSetDescriptor(UUID id,
                                     Type type,
                                     String name,
                                     Date creationDate)
Constructor.

Parameters:
id - the data set ID
type - the data set type
name - the data set name
creationDate - the data set creation date


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