Class NodeRecord

java.lang.Object
edu.ucsb.nceas.metacat.NodeRecord

public class NodeRecord extends Object
A utility class that encapsulates a node and its data
  • Constructor Details

    • NodeRecord

      public NodeRecord(long nodeid, long parentnodeid, long nodeindex, String nodetype, String nodename, String nodeprefix, String nodedata)
      Constructor
    • NodeRecord

      public NodeRecord(long nodeid, long parentnodeid, long nodeindex, String nodetype, String nodename, String nodeprefix, String nodedata, float nodedatanumerical, Timestamp nodedatadate)
  • Method Details

    • getNodeId

      public long getNodeId()
      Get functions
    • getParentNodeId

      public long getParentNodeId()
    • getNodeIndex

      public long getNodeIndex()
    • getNodeName

      public String getNodeName()
    • getNodeType

      public String getNodeType()
    • getNodePrefix

      public String getNodePrefix()
    • getNodeData

      public String getNodeData()
    • getNodeDataNumerical

      public float getNodeDataNumerical()
    • getNodeDataDate

      public Timestamp 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

      public void setNodeName(String name)
      A method used to set the node name of the current node
      Parameters:
      name - the new value of the node name
    • setNodePrefix

      public void setNodePrefix(String prefix)
      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

      public void setNodeType(String type)
      A method used to set the node type of the current node
      Parameters:
      type - the new value of the node type
    • setNodeData

      public void setNodeData(String data)
      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

      public void setNodeDataDate(Timestamp datadate)
    • contentEquals

      public boolean contentEquals(NodeRecord record)
      Method compare two records