pl.edu.agh.cast.data.model.visual
Class VisualDataSetDescriptor

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

public final class VisualDataSetDescriptor
extends DataSetDescriptor

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

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
VisualDataSetDescriptor()
          Default constructor.
VisualDataSetDescriptor(Type type)
          Initializes descriptor with type.
VisualDataSetDescriptor(Type type, String name)
          Constructor for descriptors of new data sets.
VisualDataSetDescriptor(UUID id, Type type, String name, Date creationDate)
          Constructor.
VisualDataSetDescriptor(UUID id, Type type, String name, Date creationDate, PresentationDataSetDescriptor descriptor)
          Constructor.
 
Method Summary
 PresentationDataSetDescriptor getPresentationDataSetDescriptor()
          Gets the descriptor of presentation data set wrapped by visual data set described by this descriptor.
 void setPresentationDataSetDescriptor(PresentationDataSetDescriptor descriptor)
          Sets the descriptor of presentation data set wrapped by visual data set described by this descriptor.
 
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

VisualDataSetDescriptor

public VisualDataSetDescriptor()
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.


VisualDataSetDescriptor

public VisualDataSetDescriptor(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

VisualDataSetDescriptor

public VisualDataSetDescriptor(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

VisualDataSetDescriptor

public VisualDataSetDescriptor(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

VisualDataSetDescriptor

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

Parameters:
id - the data set ID
type - the data set type
name - the data set name
creationDate - the data set creation date
descriptor - presentation data set descriptor
Method Detail

getPresentationDataSetDescriptor

public PresentationDataSetDescriptor getPresentationDataSetDescriptor()
Gets the descriptor of presentation data set wrapped by visual data set described by this descriptor.

Returns:
presentation data set descriptor
See Also:
PresentationDataSetDescriptor

setPresentationDataSetDescriptor

public void setPresentationDataSetDescriptor(PresentationDataSetDescriptor descriptor)
Sets the descriptor of presentation data set wrapped by visual data set described by this descriptor.

Parameters:
descriptor - presentation data set descriptor
See Also:
PresentationDataSetDescriptor


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