Statistics
| Revision:

root / trunk / extensions / extWCS / src / es / uji / lsi / wcs / XmlWcsParsing / CoverageOffering.java @ 1877

History | View | Annotate | Download (2.6 KB)

1
package es.uji.lsi.wcs.XmlWcsParsing;
2

    
3

    
4
/*
5
 * CoverageOffering.java
6
 *
7
 * Created on 31 de diciembre de 2004, 15:25
8
 */
9

    
10
/**
11
 *
12
 * @author  jaume
13
 */
14
public class CoverageOffering {
15
    private CoverageOfferingBrief coverageOfferingBrief;
16
    private DomainSet domainSet;
17
    private RangeSet rangeSet;
18
    private SupportedCRSs supportedCRSs;
19
    private SupportedFormats supportedFormats;
20
    private SupportedInterpolations supportedInterpolations;
21
    
22
    /** Creates a new instance of CoverageOffering */
23
    public CoverageOffering(XMLNode node, Capabilities capabilities) {
24
        for (int i=0; i<node.getNumSubNodes(); i++){
25
            XMLNode subnode = node.getSubNode(i);
26
            if (WCSToolkit.isWCSTab(subnode, "name")){
27
                // CoverageOffering type is composed from the already known 
28
                // CoverageOfferingBrief and others. Don't need to read the
29
                // CoverageOfferingBrief again, just use the previous loaded
30
                // one when GetCapabilities operation was performed.
31
                coverageOfferingBrief = capabilities.getContentMetadata().getCoverageOfferingBrief(subnode.getText());
32
            }
33
            if (WCSToolkit.isWCSTab(subnode, "domainSet")) domainSet = new DomainSet(subnode);
34
            if (WCSToolkit.isWCSTab(subnode, "rangeSet")) rangeSet = new RangeSet(subnode);
35
            if (WCSToolkit.isWCSTab(subnode, "supportedCRSs")) supportedCRSs = new SupportedCRSs(subnode);
36
            if (WCSToolkit.isWCSTab(subnode, "supportedFormats")) supportedFormats = new SupportedFormats(subnode);
37
            if (WCSToolkit.isWCSTab(subnode, "supportedInterpolations")) supportedInterpolations = new SupportedInterpolations(subnode);
38
        }
39
        
40
    }
41

    
42
    public DomainSet getDomainSet(){
43
        return domainSet;
44
    }
45
    
46
    public RangeSet getRangeSet(){
47
        return rangeSet;
48
    }
49
    
50
    public SupportedCRSs getSupportedCRSs(){
51
        return supportedCRSs;
52
    }
53

    
54
    public SupportedFormats getSupportedFormats(){
55
        return supportedFormats;
56
    }
57

    
58
    public SupportedInterpolations getSupportedInterpolations(){
59
        return supportedInterpolations;
60
    }
61

    
62
    public CoverageOfferingBrief getCoverageOfferingBrief(){
63
        return coverageOfferingBrief;
64
    }
65
    
66
    public String toString(){
67
        String s = "\nCOVERAGE OFFERING";
68
        
69
        return "\n"+getCoverageOfferingBrief()+
70
               "\n"+getDomainSet()+
71
               "\n"+getRangeSet()+
72
               "\n"+getRangeSet()+
73
               "\n"+getSupportedCRSs()+
74
               "\n"+getSupportedFormats()+
75
               "\n"+getSupportedInterpolations();
76
    }
77
}