Class Node
- java.lang.Object
-
- org.opennms.features.newts.converter.Node
-
public class Node extends Object
The Class Node.- Author:
- Alejandro Galue
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
Node
public Node(int id, String label, String foreignId, String foreignSource)
Instantiates a new node.- Parameters:
id
- the idlabel
- the labelforeignId
- the foreign idforeignSource
- the foreign source
-
Node
public Node(ResultSet rs) throws SQLException
Instantiates a new node.- Parameters:
rs
- the rs- Throws:
SQLException
- the SQL exception
-
-
Method Detail
-
getId
public int getId()
Gets the id.- Returns:
- the id
-
setId
public void setId(int id)
Sets the id.- Parameters:
id
- the new id
-
getLabel
public String getLabel()
Gets the label.- Returns:
- the label
-
setLabel
public void setLabel(String label)
Sets the label.- Parameters:
label
- the new label
-
getForeignId
public String getForeignId()
Gets the foreign id.- Returns:
- the foreign id
-
setForeignId
public void setForeignId(String foreignId)
Sets the foreign id.- Parameters:
foreignId
- the new foreign id
-
getForeignSource
public String getForeignSource()
Gets the foreign source.- Returns:
- the foreign source
-
setForeignSource
public void setForeignSource(String foreignSource)
Sets the foreign source.- Parameters:
foreignSource
- the new foreign source
-
getDir
public File getDir(File baseDir, boolean storeByFS)
Gets the dir.- Parameters:
baseDir
- the base dirstoreByFS
- the store by fs- Returns:
- the dir
-
getFSId
public String getFSId()
Gets the FS id.- Returns:
- the FS id
-
-