pl.edu.agh.cast.data.model.domain
Class DomainDataSetDescriptor

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

public final class DomainDataSetDescriptor
extends DataSetDescriptor

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

In addition to basic descriptor's data, the descriptor of domain data set holds the data related to its source (external, e.g. paper), i.e.:

Author:
AGH CAST Team
See Also:
DataSetDescriptor, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface pl.edu.agh.cast.data.model.Identifiable
Identifiable.Properties
 
Constructor Summary
DomainDataSetDescriptor()
          Default constructor.
DomainDataSetDescriptor(Type type)
          Initializes descriptor with type.
DomainDataSetDescriptor(Type type, String name)
          Constructor.
DomainDataSetDescriptor(Type type, String name, String sourceName, String sourceDescription, Date sourceDate)
          Constructor.
DomainDataSetDescriptor(Type type, UUID id, String name, Date creationDate, String sourceName, String sourceDescription, Date sourceDate)
          Constructor.
 
Method Summary
 Date getSourceDate()
           
 String getSourceDescription()
           
 String getSourceName()
           
 void setSourceDate(Date sourceDate)
           
 void setSourceDescription(String sourceDescription)
           
 void setSourceName(String sourceName)
           
 
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

DomainDataSetDescriptor

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


DomainDataSetDescriptor

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

DomainDataSetDescriptor

public DomainDataSetDescriptor(Type type,
                               String name)
Constructor.

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

DomainDataSetDescriptor

public DomainDataSetDescriptor(Type type,
                               String name,
                               String sourceName,
                               String sourceDescription,
                               Date sourceDate)
Constructor.

Parameters:
type - the data set type
name - the data set name
sourceName - data source name (short)
sourceDescription - data source detailed description
sourceDate - data source acquisition date

DomainDataSetDescriptor

public DomainDataSetDescriptor(Type type,
                               UUID id,
                               String name,
                               Date creationDate,
                               String sourceName,
                               String sourceDescription,
                               Date sourceDate)
Constructor.

Parameters:
type - the data set type
id - the data set ID
name - the data set name
creationDate - the data set creation date
sourceName - data source name (short)
sourceDescription - data source detailed description
sourceDate - data source acquisition date
Method Detail

getSourceName

public final String getSourceName()

setSourceName

public final void setSourceName(String sourceName)

getSourceDescription

public final String getSourceDescription()

setSourceDescription

public final void setSourceDescription(String sourceDescription)

getSourceDate

public final Date getSourceDate()

setSourceDate

public final void setSourceDate(Date sourceDate)


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