|
static final String | LOCAL = "local" |
|
static final String | PEER = "peer" |
|
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
◆ DataSource() [1/3]
eu.baltrad.dex.datasource.model.DataSource.DataSource |
( |
| ) |
|
|
inline |
◆ DataSource() [2/3]
eu.baltrad.dex.datasource.model.DataSource.DataSource |
( |
String | name, |
|
|
String | type, |
|
|
String | description, |
|
|
String | source, |
|
|
String | fileObject ) |
|
inline |
Constructor.
- Parameters
-
name | Data source name |
type | Data source type |
description | Description |
source | Data source code |
fileObject | File 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
-
id | Data source ID |
name | Data source name |
type | Data source type |
description | Description |
source | Data source code |
fileObject | File object code |
◆ 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
-
- 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
-
- 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 |
◆ 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 |
◆ getType()
String eu.baltrad.dex.datasource.model.DataSource.getType |
( |
| ) |
|
|
inline |
◆ 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
-
description | Data source description to set |
◆ setFileObject()
void eu.baltrad.dex.datasource.model.DataSource.setFileObject |
( |
String | fileObject | ) |
|
|
inline |
- Parameters
-
fileObject | the fileObject to set |
◆ setId()
void eu.baltrad.dex.datasource.model.DataSource.setId |
( |
int | id | ) |
|
|
inline |
Sets data source ID
- Parameters
-
◆ setName()
void eu.baltrad.dex.datasource.model.DataSource.setName |
( |
String | name | ) |
|
|
inline |
Sets data source name.
- Parameters
-
name | Data source name to set |
◆ setSource()
void eu.baltrad.dex.datasource.model.DataSource.setSource |
( |
String | source | ) |
|
|
inline |
◆ setType()
void eu.baltrad.dex.datasource.model.DataSource.setType |
( |
String | type | ) |
|
|
inline |
◆ LOCAL
final String eu.baltrad.dex.datasource.model.DataSource.LOCAL = "local" |
|
static |
◆ PEER
final String eu.baltrad.dex.datasource.model.DataSource.PEER = "peer" |
|
static |
The documentation for this class was generated from the following file:
- src/java/eu/baltrad/dex/datasource/model/DataSource.java