Revision 3486 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/csw/queries/CSWQuery.java

View differences:

CSWQuery.java
40 40
*/
41 41
package es.gva.cit.catalogClient.csw.queries;
42 42

  
43
import es.gva.cit.catalogClient.csw.profiles.AdditionalClauses;
44
import es.gva.cit.catalogClient.csw.profiles.DublinCoreProfile;
45
import es.gva.cit.catalogClient.csw.profiles.EbRIMProfile;
46
import es.gva.cit.catalogClient.csw.profiles.IProfiles;
47
import es.gva.cit.catalogClient.csw.profiles.ISO19115Profile;
48 43
import es.gva.cit.catalogClient.languages.FilterEncoding;
44
import es.gva.cit.catalogClient.profiles.AdditionalClauses;
45
import es.gva.cit.catalogClient.profiles.DublinCoreProfile;
46
import es.gva.cit.catalogClient.profiles.EbRIMProfile;
47
import es.gva.cit.catalogClient.profiles.IProfiles;
48
import es.gva.cit.catalogClient.profiles.ISO19115Profile;
49
import es.gva.cit.catalogClient.profiles.Profile;
49 50
import es.gva.cit.catalogClient.querys.IQuery;
50 51
import es.gva.cit.catalogClient.querys.Query;
51 52
import es.gva.cit.catalogClient.utils.Strings;
......
158 159
     * @param profile
159 160
     */
160 161
    public void setProfile(String profile) {
161
        if (profile.equals("ISO19115")) {
162
        if (profile.equals(Profile.ISO19115)) {
162 163
            setEquiv(new ISO19115Profile());
163
        } else if (profile.equals("DUBLINCORE"))
164
        } else if (profile.equals(Profile.DUBLINCORE))
164 165
            setEquiv(new DublinCoreProfile());
165 166
            else{
166 167
                setEquiv(new EbRIMProfile());

Also available in: Unified diff