Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / feature / FeatureQueryOrder.java @ 46970

History | View | Annotate | Download (2.53 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or modify it under
7
 * the terms of the GNU General Public License as published by the Free Software
8
 * Foundation; either version 3 of the License, or (at your option) any later
9
 * version.
10
 *
11
 * This program is distributed in the hope that it will be useful, but WITHOUT
12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14
 * details.
15
 *
16
 * You should have received a copy of the GNU General Public License along with
17
 * this program; if not, write to the Free Software Foundation, Inc., 51
18
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us at info AT
21
 * gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.fmap.dal.feature;
24

    
25
import java.util.Iterator;
26
import org.gvsig.expressionevaluator.Expression;
27
import org.gvsig.fmap.dal.feature.FeatureQueryOrder.FeatureQueryOrderMember;
28
import org.gvsig.json.SupportJson;
29
import org.gvsig.json.SupportToJson;
30
import org.gvsig.tools.evaluator.Evaluator;
31
import org.gvsig.tools.lang.Cloneable;
32
import org.gvsig.tools.persistence.Persistent;
33

    
34
/**
35
 *
36
 * @author fdiaz
37
 */
38
public interface FeatureQueryOrder extends Cloneable, Iterable<FeatureQueryOrderMember>, Persistent, SupportJson {
39

    
40
    public interface FeatureQueryOrderMember extends Persistent, Cloneable, SupportJson {
41

    
42
        FeatureQueryOrderMember clone() throws CloneNotSupportedException;
43

    
44
        boolean getAscending();
45

    
46
        String getAttributeName();
47

    
48
        Evaluator getEvaluator();
49

    
50
        boolean hasEvaluator();
51

    
52
        void setAscending(boolean ascending);
53

    
54
    }
55

    
56
    Object add(String order);
57

    
58
    Object add(String attributeName, boolean ascending);
59

    
60
    Object add(Expression expr, boolean ascending);
61

    
62
    void clear();
63

    
64
    FeatureQueryOrder clone() throws CloneNotSupportedException;
65

    
66
    boolean contains(String attributeName);
67

    
68
    void copyFrom(FeatureQueryOrder other);
69

    
70
    FeatureQueryOrderMember get(String attributeName);
71

    
72
    FeatureQueryOrder getCopy();
73

    
74
    int getIndex(String attributeName);
75

    
76
    boolean isEmpty();
77

    
78
    Iterator<FeatureQueryOrderMember> iterator();
79

    
80
    Iterable<FeatureQueryOrderMember> members();
81

    
82
    void moveNext(String name);
83

    
84
    void movePrevious(String name);
85

    
86
    boolean remove(FeatureQueryOrderMember member);
87

    
88
    void remove(int index);
89

    
90
    int size();
91

    
92
}