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