1 |
2297
|
jones
|
/**
|
2 |
|
|
* '$RCSfile$'
|
3 |
|
|
* Copyright: 2004 Regents of the University of California and the
|
4 |
|
|
* National Center for Ecological Analysis and Synthesis
|
5 |
|
|
*
|
6 |
|
|
* '$Author$'
|
7 |
|
|
* '$Date$'
|
8 |
|
|
* '$Revision$'
|
9 |
|
|
*
|
10 |
|
|
* This program is free software; you can redistribute it and/or modify
|
11 |
|
|
* it under the terms of the GNU General Public License as published by
|
12 |
|
|
* the Free Software Foundation; either version 2 of the License, or
|
13 |
|
|
* (at your option) any later version.
|
14 |
|
|
*
|
15 |
|
|
* This program is distributed in the hope that it will be useful,
|
16 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18 |
|
|
* GNU General Public License for more details.
|
19 |
|
|
*
|
20 |
|
|
* You should have received a copy of the GNU General Public License
|
21 |
|
|
* along with this program; if not, write to the Free Software
|
22 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
23 |
|
|
*/
|
24 |
|
|
package edu.ucsb.nceas.metacat;
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
/**
|
28 |
|
|
* PathIndexEntry contains all of the data fields needed to insert an path into
|
29 |
|
|
* the xml_index table.
|
30 |
2376
|
sgarg
|
*
|
31 |
2297
|
jones
|
* @author jones
|
32 |
|
|
*/
|
33 |
|
|
public class PathIndexEntry
|
34 |
|
|
{
|
35 |
|
|
protected long nodeId;
|
36 |
|
|
protected String path;
|
37 |
2376
|
sgarg
|
protected String docid;
|
38 |
2297
|
jones
|
protected String docType;
|
39 |
|
|
protected long parentId;
|
40 |
2376
|
sgarg
|
|
41 |
2297
|
jones
|
/**
|
42 |
|
|
* Construct a new PathIndexEntry.
|
43 |
2376
|
sgarg
|
*
|
44 |
2297
|
jones
|
* @param nodeId the node identifier
|
45 |
|
|
* @param path the path in the xml document
|
46 |
|
|
* @param docid the document identifier
|
47 |
|
|
* @param docType the document type
|
48 |
|
|
* @param parentId the identifier of the parent node
|
49 |
|
|
*/
|
50 |
2376
|
sgarg
|
public PathIndexEntry(long nodeId, String path, String docid,
|
51 |
2436
|
sgarg
|
String docType, long parentId)
|
52 |
2297
|
jones
|
{
|
53 |
|
|
this.nodeId = nodeId;
|
54 |
|
|
this.path = path;
|
55 |
|
|
this.docid = docid;
|
56 |
|
|
this.docType = docType;
|
57 |
|
|
this.parentId = parentId;
|
58 |
|
|
}
|
59 |
|
|
}
|