BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.datasource.model.DataSource Class Reference
Inheritance diagram for eu.baltrad.dex.datasource.model.DataSource:

Public Member Functions

 DataSource ()
 
 DataSource (String name, String type, String description, String source, String fileObject)
 
 DataSource (int id, String name, String type, String description, String source, String fileObject)
 
boolean equals (Object o)
 
int hashCode ()
 
int getId ()
 
void setId (int id)
 
String getName ()
 
void setName (String name)
 
String getType ()
 
void setType (String type)
 
String getSource ()
 
void setSource (String source)
 
String getFileObject ()
 
void setFileObject (String fileObject)
 
String getDescription ()
 
void setDescription (String description)
 
int compareTo (DataSource ds)
 
String toString ()
 

Static Public Attributes

static final String LOCAL = "local"
 
static final String PEER = "peer"
 

Detailed Description

Class implements data source object.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
2.0.0
Since
0.6.4

Constructor & Destructor Documentation

◆ DataSource() [1/3]

eu.baltrad.dex.datasource.model.DataSource.DataSource ( )
inline

Default constructor.

◆ DataSource() [2/3]

eu.baltrad.dex.datasource.model.DataSource.DataSource ( String name,
String type,
String description,
String source,
String fileObject )
inline

Constructor.

Parameters
nameData source name
typeData source type
descriptionDescription
sourceData source code
fileObjectFile object code

◆ DataSource() [3/3]

eu.baltrad.dex.datasource.model.DataSource.DataSource ( int id,
String name,
String type,
String description,
String source,
String fileObject )
inline

Constructor.

Parameters
idData source ID
nameData source name
typeData source type
descriptionDescription
sourceData source code
fileObjectFile object code

Member Function Documentation

◆ compareTo()

int eu.baltrad.dex.datasource.model.DataSource.compareTo ( DataSource ds)
inline

Implements comparable interface. Allows to sort data source objects based on data source name.

Parameters
dsDataSource
Returns
0 if objects are equal

◆ equals()

boolean eu.baltrad.dex.datasource.model.DataSource.equals ( Object o)
inline

Compares data source with another object.

Parameters
oObject to compare with
Returns
True if objects are equal, false otherwise

◆ getDescription()

String eu.baltrad.dex.datasource.model.DataSource.getDescription ( )
inline

Gets data source description.

Returns
Data source description

◆ getFileObject()

String eu.baltrad.dex.datasource.model.DataSource.getFileObject ( )
inline
Returns
the fileObject

◆ getId()

int eu.baltrad.dex.datasource.model.DataSource.getId ( )
inline

Gets data source ID.

Returns
Data source ID

◆ getName()

String eu.baltrad.dex.datasource.model.DataSource.getName ( )
inline

Gets data source name.

Returns
Data source name

◆ getSource()

String eu.baltrad.dex.datasource.model.DataSource.getSource ( )
inline
Returns
the source

◆ getType()

String eu.baltrad.dex.datasource.model.DataSource.getType ( )
inline
Returns
the type

◆ hashCode()

int eu.baltrad.dex.datasource.model.DataSource.hashCode ( )
inline

Creates data source name hash code.

Returns
Data source name code or 0 if product identifier is null

◆ setDescription()

void eu.baltrad.dex.datasource.model.DataSource.setDescription ( String description)
inline

Sets data source description.

Parameters
descriptionData source description to set

◆ setFileObject()

void eu.baltrad.dex.datasource.model.DataSource.setFileObject ( String fileObject)
inline
Parameters
fileObjectthe fileObject to set

◆ setId()

void eu.baltrad.dex.datasource.model.DataSource.setId ( int id)
inline

Sets data source ID

Parameters
idData source ID

◆ setName()

void eu.baltrad.dex.datasource.model.DataSource.setName ( String name)
inline

Sets data source name.

Parameters
nameData source name to set

◆ setSource()

void eu.baltrad.dex.datasource.model.DataSource.setSource ( String source)
inline
Parameters
sourcethe source to set

◆ setType()

void eu.baltrad.dex.datasource.model.DataSource.setType ( String type)
inline
Parameters
typethe type to set

Member Data Documentation

◆ LOCAL

final String eu.baltrad.dex.datasource.model.DataSource.LOCAL = "local"
static

Local data source

◆ PEER

final String eu.baltrad.dex.datasource.model.DataSource.PEER = "peer"
static

Peer data source


The documentation for this class was generated from the following file: