1
|
/**
|
2
|
* '$RCSfile$'
|
3
|
* Purpose: A Class that represents all node info from the database
|
4
|
* Copyright: 2000 Regents of the University of California and the
|
5
|
* National Center for Ecological Analysis and Synthesis
|
6
|
* Authors: Matt Jones
|
7
|
* Release: @release@
|
8
|
*
|
9
|
* '$Author: jones $'
|
10
|
* '$Date: 2000-08-21 14:52:48 -0700 (Mon, 21 Aug 2000) $'
|
11
|
* '$Revision: 388 $'
|
12
|
*/
|
13
|
|
14
|
package edu.ucsb.nceas.metacat;
|
15
|
|
16
|
/**
|
17
|
* A utility class that encapsulates a node and its data
|
18
|
*/
|
19
|
public class NodeRecord {
|
20
|
public long nodeid;
|
21
|
public long parentnodeid;
|
22
|
public long nodeindex;
|
23
|
public String nodename = null;
|
24
|
public String nodetype = null;
|
25
|
public String nodedata = null;
|
26
|
|
27
|
/**
|
28
|
* Constructor
|
29
|
*/
|
30
|
public NodeRecord(long nodeid, long parentnodeid, long nodeindex,
|
31
|
String nodetype, String nodename, String nodedata) {
|
32
|
this.nodeid = nodeid;
|
33
|
this.parentnodeid = parentnodeid;
|
34
|
this.nodeindex = nodeindex;
|
35
|
this.nodename = nodename;
|
36
|
this.nodetype = nodetype;
|
37
|
this.nodedata = nodedata;
|
38
|
}
|
39
|
}
|