Hi,
I'm still trying to parse the WCS Capabilities document using the existing
EMF model. However, it seems to have trouble creating a RequestType object
as in:
<complexType name="WCSCapabilityType">
<sequence>
<element name="Request">
<complexType>
<sequence>
<element name="GetCapabilities">
<complexType>
...
There is a GetCapabilitiesType1 class which corresponds to the
GetCapabilities element above, but this doesn't seem to be getting called.
Instead it thinks its a HashMap, so when RequestType's eSet() is called for
the GetCapabilities element I get a ClassCastException:
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Wcs10Package.REQUEST_TYPE__GET_CAPABILITIES:
setGetCapabilities((GetCapabilitiesType1)newValue);
<--ClassCastException, newValue is a HashMap, not a GetCapabilitiesType1!)
I'm a bit confused as to how EMF determines what type an element corresponds
to since I can't find anything which tells it to create a HashMap instead of
a GetCapabilitiesType1. I'm not sure if that makes any sense, but if anyone
can see what's going wrong I'd be greatful for some help!
Thanks,
Jon
--
View this message in context:
http://n2.nabble.com/Parsing-WCS-Capabilities-with-EMF---ClassCastExceptions-tp2739779p2739779.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users