Statistics
| Revision:

svn-gvsig-desktop / trunk / applications / appCatalogYNomenclatorClient / src / es / gva / cit / catalogClient / drivers / AbstractCatalogServiceDriver.java @ 2658

History | View | Annotate | Download (2.97 KB)

1
/*
2
 * Created on 22-abr-2005
3
 *
4
 * TODO To change the template for this generated file go to
5
 * Window - Preferences - Java - Code Style - Code Templates
6
 */
7
package es.gva.cit.catalogClient.drivers;
8

    
9
import es.gva.cit.catalogClient.querys.Query;
10

    
11

    
12
/**
13
 * @author jpiera
14
 *
15
 * TODO To change the template for this generated type comment go to
16
 * Window - Preferences - Java - Code Style - Code Templates
17
 */
18
public abstract class AbstractCatalogServiceDriver implements ICatalogServiceDriver{
19
        private String sortBy = null;
20
    private String startPosition;
21
    private String maxRecords;
22
    private String outputFormat = null;
23
    private String[] outputSchema = null;
24
    private String serverAnswerReady = null;
25
    private Query query = null;
26
    private String communicationProtocol = null;
27

    
28
    
29
        /**
30
         * @return Returns the communicationProtocol.
31
         */
32
        public String getCommunicationProtocol() {
33
                return communicationProtocol;
34
        }
35
        /**
36
         * @param communicationProtocol The communicationProtocol to set.
37
         */
38
        public void setCommunicationProtocol(String communicationProtocol) {
39
                this.communicationProtocol = communicationProtocol;
40
        }
41
        /**
42
         * @return Returns the query.
43
         */
44
        public Query getQuery() {
45
                return query;
46
        }
47
        /**
48
         * @param query The query to set.
49
         */
50
        public void setQuery(Query query) {
51
                if (query != null)
52
                        this.query = query;
53
        }
54
    
55
        /**
56
         * @return Returns the maxRecords.
57
         */
58
        public String getMaxRecords() {
59
                return maxRecords;
60
        }
61
        /**
62
         * @param maxRecords The maxRecords to set.
63
         */
64
        public void setMaxRecords(String maxRecords) {
65
                this.maxRecords = maxRecords;
66
        }
67
        /**
68
         * @return Returns the outputFormat.
69
         */
70
        public String getOutputFormat() {
71
                return outputFormat;
72
        }
73
        /**
74
         * @param outputFormat The outputFormat to set.
75
         */
76
        public void setOutputFormat(String outputFormat) {
77
                this.outputFormat = outputFormat;
78
        }
79
        /**
80
         * @return Returns the outputSchema.
81
         */
82
        public String[] getOutputSchema() {
83
                return outputSchema;
84
        }
85
        /**
86
         * @param outputSchema The outputSchema to set.
87
         */
88
        public void setOutputSchema(String[] outputSchema) {
89
                this.outputSchema = outputSchema;
90
        }
91
        public void setOutputSchema(String outputSchema) {
92
                String[] s = new String[1];
93
                s[0] = outputSchema;
94
                this.outputSchema = s;
95
        }
96
        
97
        /**
98
         * @return Returns the sortBy.
99
         */
100
        public String getSortBy() {
101
                return sortBy;
102
        }
103
        /**
104
         * @param sortBy The sortBy to set.
105
         */
106
        public void setSortBy(String sortBy) {
107
                this.sortBy = sortBy;
108
        }
109
        /**
110
         * @return Returns the startPosition.
111
         */
112
        public String getStartPosition() {
113
                return startPosition;
114
        }
115
        /**
116
         * @param startPosition The startPosition to set.
117
         */
118
        public void setStartPosition(String startPosition) {
119
                this.startPosition = startPosition;
120
        }
121
        /**
122
         * @return Returns the serverAnswerReady.
123
         */
124
        public String getServerAnswerReady() {
125
                return serverAnswerReady;
126
        }
127
        /**
128
         * @param serverAnswerReady The serverAnswerReady to set.
129
         */
130
        public void setServerAnswerReady(String serverAnswerReady) {
131
                this.serverAnswerReady = serverAnswerReady;
132
        }
133
}