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 FilegetDir(File baseDir, boolean storeByFS)Gets the dir.StringgetForeignId()Gets the foreign id.StringgetForeignSource()Gets the foreign source.StringgetFSId()Gets the FS id.intgetId()Gets the id.StringgetLabel()Gets the label.voidsetForeignId(String foreignId)Sets the foreign id.voidsetForeignSource(String foreignSource)Sets the foreign source.voidsetId(int id)Sets the id.voidsetLabel(String label)Sets the label.StringtoString()
-
-
-
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
-
-