Package edu.ucsb.nceas.metacat
Class NodeRecord
java.lang.Object
edu.ucsb.nceas.metacat.NodeRecord
A utility class that encapsulates a node and its data
-
Constructor Summary
ConstructorDescriptionNodeRecord
(long nodeid, long parentnodeid, long nodeindex, String nodetype, String nodename, String nodeprefix, String nodedata) ConstructorNodeRecord
(long nodeid, long parentnodeid, long nodeindex, String nodetype, String nodename, String nodeprefix, String nodedata, float nodedatanumerical, Timestamp nodedatadate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
contentEquals
(NodeRecord record) Method compare two recordsfloat
long
Get functionslong
long
void
setNodeData
(String data) A method used to set the node data of the current nodevoid
setNodeDataDate
(Timestamp datadate) void
setNodeDataNumerical
(float datanumerical) A method used to set the numerical node data of the current nodevoid
setNodeId
(long id) A method used to set the node id of the current nodevoid
setNodeIndex
(long index) A method used to set the node index of the current nodevoid
setNodeName
(String name) A method used to set the node name of the current nodevoid
setNodePrefix
(String prefix) A method used to set the node prefix of the current nodevoid
setNodeType
(String type) A method used to set the node type of the current nodevoid
setParentNodeId
(long parentid) A method used to set the node parent id of the current node
-
Constructor Details
-
Method Details
-
getNodeId
public long getNodeId()Get functions -
getParentNodeId
public long getParentNodeId() -
getNodeIndex
public long getNodeIndex() -
getNodeName
-
getNodeType
-
getNodePrefix
-
getNodeData
-
getNodeDataNumerical
public float getNodeDataNumerical() -
getNodeDataDate
-
setNodeId
public void setNodeId(long id) A method used to set the node id of the current node- Parameters:
id
- the new value of the id
-
setParentNodeId
public void setParentNodeId(long parentid) A method used to set the node parent id of the current node- Parameters:
parentid
- the new value of the parent id
-
setNodeName
A method used to set the node name of the current node- Parameters:
name
- the new value of the node name
-
setNodePrefix
A method used to set the node prefix of the current node- Parameters:
prefix
- the new value of the node prefix
-
setNodeIndex
public void setNodeIndex(long index) A method used to set the node index of the current node- Parameters:
index
- the new value of the node index
-
setNodeType
A method used to set the node type of the current node- Parameters:
type
- the new value of the node type
-
setNodeData
A method used to set the node data of the current node- Parameters:
data
- the new value of the node data
-
setNodeDataNumerical
public void setNodeDataNumerical(float datanumerical) A method used to set the numerical node data of the current node- Parameters:
datanumerical
- the new value of the numerical node data
-
setNodeDataDate
-
contentEquals
Method compare two records
-