01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.search.rdm;
07:
08: import java.util.*;
09:
10: /**
11: * RDM View
12: *
13: * Holds RDMViewAttr, RDMViewHits, and RDMViewOrder objects.
14: */
15: public class RDMView {
16:
17: public RDMViewAttributes attr;
18: public RDMViewHits hits;
19: public String order;
20:
21: /** RDMView_Parse() loads a view from an RDMQuery.
22: * Use prototype: RDMView *RDMView_Parse(RDMQuery *);
23: */
24: public RDMView(RDMRequest req) {
25: String s;
26: if ((s = req.query.getViewAttr()) != null)
27: attr = new RDMViewAttributes(s); // optional
28: order = req.query.getViewOrder(); // optional
29: hits = new RDMViewHits(req.query.getViewHits()); // always set
30: }
31:
32: public RDMView(RDMViewAttributes va, RDMViewHits vh, String vo) {
33: hits = vh;
34: attr = va;
35: order = vo;
36: }
37:
38: }
|