root / trunk / extensions / extWCS / src / es / uji / lsi / wcs / XmlWcsParsing / SupportedInterpolations.java @ 1877
History | View | Annotate | Download (1.09 KB)
1 |
package es.uji.lsi.wcs.XmlWcsParsing; |
---|---|
2 |
/*
|
3 |
* SupportedInterpolations.java
|
4 |
*
|
5 |
* Created on 13 de enero de 2005, 17:45
|
6 |
*/
|
7 |
import java.util.*; |
8 |
/**
|
9 |
*
|
10 |
* @author jaume
|
11 |
*/
|
12 |
public class SupportedInterpolations { |
13 |
private Hashtable supportedInterpolations = new Hashtable(); |
14 |
/** Creates a new instance of SupportedInterpolations */
|
15 |
public SupportedInterpolations(XMLNode node) {
|
16 |
for (int i=0; i<node.getNumSubNodes(); i++){ |
17 |
XMLNode subnode = node.getSubNode(i); |
18 |
if (WCSToolkit.isWCSTab(subnode, "interpolationMethod")) { |
19 |
if (supportedInterpolations.containsKey(subnode.getText().toLowerCase()))
|
20 |
supportedInterpolations.remove(subnode.getText().toLowerCase()); |
21 |
supportedInterpolations.put(subnode.getText().toLowerCase(), new Boolean(true)); |
22 |
} |
23 |
} |
24 |
} |
25 |
|
26 |
public boolean supportsInterpolationMethod(String s){ |
27 |
return supportedInterpolations.containsKey(s.toLowerCase());
|
28 |
} |
29 |
|
30 |
public String toString(){ |
31 |
String s = "\nSupported Interpolations: "; |
32 |
|
33 |
return s;
|
34 |
} |
35 |
} |