Source Code Cross Referenced for RDMQuery.java in  » Portal » Open-Portal » com » sun » portal » search » rdm » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » com.sun.portal.search.rdm 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /* 
002:         * Copyright 2001 Sun Microsystems, Inc.  All rights reserved. 
003:         * PROPRIETARY/CONFIDENTIAL.  Use of this product is subject to license terms. 
004:         */
005:
006:        package com.sun.portal.search.rdm;
007:
008:        import com.sun.portal.search.soif.*;
009:
010:        import java.util.*;
011:
012:        /** RDM Query
013:         *
014:         *  Valid SOIF Attribute names for @RDMQUERY objects:
015:         *	Scope					REQUIRED
016:         *	Mode					OPTIONAL
017:         *	View-Attributes				OPTIONAL
018:         *	View-Hits				OPTIONAL
019:         *	View-Order				OPTIONAL
020:         *	View-Template				OPTIONAL
021:         */
022:        public class RDMQuery {
023:
024:            SOIF soif;
025:
026:            public RDMQuery(String scope) {
027:                soif = new SOIF(RDM.A_SN_RDM_QRY, null);
028:                if (scope != null)
029:                    setScope(scope);
030:            }
031:
032:            public RDMQuery(SOIFInputStream ss) throws Exception {
033:                this ((String) null);
034:                SOIF s = ss.readSOIF();
035:                if (s == null)
036:                    return; // EOS - some requests don't require RDMQuery
037:                if (!s.getSchemaName().equalsIgnoreCase(RDM.A_SN_RDM_QRY))
038:                    throw new Exception("Expected Query, got: "
039:                            + s.getSchemaName());
040:                soif.merge(s);
041:                // Validate header
042:                //if (getScope() == null)
043:                //    throw new Exception("INVALID_SCOPE"); // XXX
044:            }
045:
046:            /** Macros for accessing @RDMQUERY values
047:             *  Use prototype: char *RDMQuery_GetXXX(RDMQuery *q).
048:             */
049:            public String getScope() {
050:                return soif.getValue(RDM.A_RDM_SCOPE);
051:            }
052:
053:            public String getMode() {
054:                return soif.getValue(RDM.A_RDM_MODE);
055:            }
056:
057:            public String getViewAttr() {
058:                return soif.getValue(RDM.A_RDM_VIEWATT);
059:            }
060:
061:            public String getViewHits() {
062:                return soif.getValue(RDM.A_RDM_VIEWHIT);
063:            }
064:
065:            public String getViewOrder() {
066:                return soif.getValue(RDM.A_RDM_VIEWORD);
067:            }
068:
069:            public String getDatabase() {
070:                return soif.getValue(RDM.A_RDM_DATABASE);
071:            }
072:
073:            public String getSearchCategory() {
074:                return soif.getValue(RDM.A_RDM_SEARCH_CATEGORY);
075:            }
076:
077:            public String getHighlight() {
078:                return soif.getValue(RDM.A_RDM_HIGHLIGHT);
079:            }
080:
081:            public String getHighlightTags() {
082:                return soif.getValue(RDM.A_RDM_HIGHLIGHT_TAGS);
083:            }
084:
085:            public String getHighlightTagsField() {
086:                return soif.getValue(RDM.A_RDM_HIGHLIGHT_TAGS_FIELD);
087:            }
088:
089:            public String getPassageContext() {
090:                return soif.getValue(RDM.A_RDM_PASSAGE_CONTEXT);
091:            }
092:
093:            public String getMaxPassages() {
094:                return soif.getValue(RDM.A_RDM_MAX_PASSAGES);
095:            }
096:
097:            public SOIF getSOIF() {
098:                return soif;
099:            }
100:
101:            /** Macros for defining @RDMQUERY values
102:             *  Use prototype: int RDMQuery_SetXXX(RDMQuery *q, char *newvalue).
103:             */
104:            public void setScope(String s) {
105:                soif.replace(RDM.A_RDM_SCOPE, s);
106:            }
107:
108:            public void setMode(String s) {
109:                soif.replace(RDM.A_RDM_MODE, s);
110:            }
111:
112:            public void setViewAttr(String s) {
113:                soif.replace(RDM.A_RDM_VIEWATT, s);
114:            }
115:
116:            public void setViewHits(String s) {
117:                soif.replace(RDM.A_RDM_VIEWHIT, s);
118:            }
119:
120:            public void setViewOrder(String s) {
121:                soif.replace(RDM.A_RDM_VIEWORD, s);
122:            }
123:
124:            public void setSearchCategory(String s) {
125:                soif.replace(RDM.A_RDM_SEARCH_CATEGORY, s);
126:            }
127:
128:            public void setDatabase(String s) {
129:                soif.replace(RDM.A_RDM_DATABASE, s);
130:            }
131:
132:            public void setHighlight(String s) {
133:                soif.replace(RDM.A_RDM_HIGHLIGHT, s);
134:            }
135:
136:            public void setHighlightTags(String s) {
137:                soif.replace(RDM.A_RDM_HIGHLIGHT_TAGS, s);
138:            }
139:
140:            public void setHighlightTagsField(String s) {
141:                soif.replace(RDM.A_RDM_HIGHLIGHT_TAGS_FIELD, s);
142:            }
143:
144:            public void setPassageContext(String s) {
145:                soif.replace(RDM.A_RDM_PASSAGE_CONTEXT, s);
146:            }
147:
148:            public void setMaxPassages(String s) {
149:                soif.replace(RDM.A_RDM_MAX_PASSAGES, s);
150:            }
151:
152:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.