public class Node extends Object
| Constructor and Description |
|---|
Node(int id,
String label,
String foreignId,
String foreignSource)
Instantiates a new node.
|
Node(ResultSet rs)
Instantiates a new node.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getDir(File baseDir,
boolean storeByFS)
Gets the dir.
|
String |
getForeignId()
Gets the foreign id.
|
String |
getForeignSource()
Gets the foreign source.
|
String |
getFSId()
Gets the FS id.
|
int |
getId()
Gets the id.
|
String |
getLabel()
Gets the label.
|
void |
setForeignId(String foreignId)
Sets the foreign id.
|
void |
setForeignSource(String foreignSource)
Sets the foreign source.
|
void |
setId(int id)
Sets the id.
|
void |
setLabel(String label)
Sets the label.
|
String |
toString() |
public Node(int id,
String label,
String foreignId,
String foreignSource)
id - the idlabel - the labelforeignId - the foreign idforeignSource - the foreign sourcepublic Node(ResultSet rs) throws SQLException
rs - the rsSQLException - the SQL exceptionpublic int getId()
public void setId(int id)
id - the new idpublic String getLabel()
public void setLabel(String label)
label - the new labelpublic String getForeignId()
public void setForeignId(String foreignId)
foreignId - the new foreign idpublic String getForeignSource()
public void setForeignSource(String foreignSource)
foreignSource - the new foreign sourcepublic File getDir(File baseDir, boolean storeByFS)
baseDir - the base dirstoreByFS - the store by fspublic String getFSId()
Copyright © 2020. All rights reserved.