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
ConstructorsConstructorDescriptionNodeRecord(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 TypeMethodDescriptionbooleancontentEquals(NodeRecord record) Method compare two recordsfloatlongGet functionslonglongvoidsetNodeData(String data) A method used to set the node data of the current nodevoidsetNodeDataDate(Timestamp datadate) voidsetNodeDataNumerical(float datanumerical) A method used to set the numerical node data of the current nodevoidsetNodeId(long id) A method used to set the node id of the current nodevoidsetNodeIndex(long index) A method used to set the node index of the current nodevoidsetNodeName(String name) A method used to set the node name of the current nodevoidsetNodePrefix(String prefix) A method used to set the node prefix of the current nodevoidsetNodeType(String type) A method used to set the node type of the current nodevoidsetParentNodeId(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
-