Statistics
| Revision:

svn-gvsig-desktop / branches / v02_desarrollo / libraries / sld / temp / org.gvsig.sldsupport.lib.api / src / main / java / org / gvsig / sldsupport / sld / graphic / SLDExternalGraphic.java @ 40793

History | View | Annotate | Download (1.19 KB)

1
package org.gvsig.sldsupport.sld.graphic;
2

    
3
public class SLDExternalGraphic implements SLDGraphicStackElement {
4
        
5
        protected String onlineResource = null;
6
        protected byte[] inlineContent = null;
7

    
8
        /*
9
         * true - onlineResource has URL
10
         * false - inlineContent has content
11
         */
12
        protected boolean isOnline = true;
13
        protected String format = null; 
14
        
15
        public SLDExternalGraphic() {
16
                
17
        }
18
        
19
        /**
20
         * If this returns null, use getInlineContent
21
         * @return
22
         */
23
        public String getOnlineResource() {
24
                if (isOnline) {
25
                        return this.onlineResource;
26
                } else {
27
                        return null;
28
                }
29
        }
30
        
31
        public byte[] getInlineContent() {
32
                if (isOnline) {
33
                        return null;
34
                } else {
35
                        return this.inlineContent;
36
                }
37
        }
38
        
39
        public String getFormat() {
40
                return format;
41
        }
42
        
43
        public boolean isOnlineResource() {
44
                return isOnline;
45
        }
46

    
47
        public void setOnlineResource(String onlineResource) {
48
                this.onlineResource = onlineResource;
49
        }
50

    
51
        public void setInlineContent(byte[] inlineContent) {
52
                this.inlineContent = inlineContent;
53
        }
54

    
55
        public void setIsOnline(boolean isOnline) {
56
                this.isOnline = isOnline;
57
        }
58

    
59
        public void setFormat(String format) {
60
                this.format = format;
61
        }
62
        
63
        
64

    
65
}