throws SAXException, OperationNotSupportedException {
WMSCCapabilities capabilities = new WMSCCapabilities();
for( int i = 0; i < value.length; i++ ) {
ElementValue elementValue = value[i];
// Service
if (sameName(elems[0], elementValue)) {
Service x = ((Service)elementValue.getValue());
capabilities.setService(x);
}
// Capability
if (sameName(elems[1], elementValue)) {
Capability c = ((Capability)elementValue.getValue());
capabilities.setCapabilitiy(c);
}
// VendorSpecificCapabilities
if (sameName(elems[2], elementValue)) {
// vendor specific capabilities for 1.0alpha version of
// geowebcache; once geowebcache fixed up this should not be necessary as
// this should be inside a capabilities
Capability c= new Capability();
VendorSpecificCapabilities cs = ((VendorSpecificCapabilities)elementValue.getValue());
c.setVendorCapabilities(cs);
capabilities.setCapabilitiy(c);
}
}