Statistics
| Revision:

root / trunk / libraries / libRemoteServices / src / org / gvsig / remoteClient / wms / WMSStyle.java @ 3520

History | View | Annotate | Download (1.61 KB)

1

    
2
package org.gvsig.remoteClient.wms;
3

    
4
import java.io.IOException;
5

    
6
import org.kxml2.io.KXmlParser;
7
import org.xmlpull.v1.XmlPullParserException;
8

    
9
/**
10
 * <p>Defines a OGC style. Theme that describes the appeareance of certain layer.</p>
11
 * 
12
 */
13
public abstract class WMSStyle {
14

    
15
        //style name, defined in the WMS capabilities
16
        private String name;
17
        //style title, defined in the WMS capabilities
18
        private String title;
19
        // style abstract, defined in the WMS capabilities
20
    private String styleAbstract;
21

    
22
/**
23
 * <p>Parses the STYLE tag in the WMS capabilities, filling the WMSStyle object
24
 * loading the data in memory to be easily accesed</p>
25
 * 
26
 */
27
    public abstract void parse(KXmlParser parser) throws IOException, XmlPullParserException;
28

    
29
/**
30
 * <p>gets the style name</p>
31
 * 
32
 * @return style name
33
 */
34
    public String getName() {        
35
            return name;
36
    } 
37

    
38
/**
39
 * <p>sets the style name.</p>
40
 * 
41
 * @param _name 
42
 */
43
    public void setName(String _name) {        
44
        name = _name;
45
    } 
46

    
47
/**
48
 * <p>gets the style title</p>
49
 * 
50
 * 
51
 * @return style title
52
 */
53
    public String getTitle() {        
54
        return title;
55
    } 
56

    
57
/**
58
 * <p>Sets style title</p>
59
 * 
60
 * 
61
 * @param _title 
62
 */
63
    public void setTitle(String _title) {        
64
        title = _title.trim();
65
    } 
66

    
67
/**
68
 * <p>gets style abstract</p>
69
 * 
70
 * 
71
 * @return style abstract
72
 */
73
    public String getAbstract() {               
74
        return styleAbstract;
75
    } 
76

    
77
/**
78
 * <p>sets style abstract</p>
79
 * 
80
 * 
81
 * @param _abstract, style abstract 
82
 */
83
    public void setAbstract(String _abstract) {        
84
        styleAbstract = _abstract;
85
    } 
86
 }