if (baseUrl == null) {
throw new IllegalArgumentException("Request object" + request
+ " has no 'baseUrl' property.");
}
OperationsMetadataType operationsMetadata = owsf.createOperationsMetadataType();
caps.setOperationsMetadata(operationsMetadata);
OperationMetadata_GetCapabilities(owsf, baseUrl, operationsMetadata);
OperationMetadata_DescribeRecord(owsf, baseUrl, operationsMetadata);
OperationMetadata_GetDomain(owsf, baseUrl, operationsMetadata);
OperationMetadata_GetRecords(owsf, baseUrl, operationsMetadata);
OperationMetadata_GetRecordById(owsf, baseUrl, operationsMetadata);
if (store.getCapabilities().supportsTransactions()) {
OperationMetadata_Transaction(owsf, baseUrl, operationsMetadata);
}
// - Parameters
for (DomainType param : operationParameters.get("OperationsMetadata"))
{
// clone the object, as the caps decorators might want to modify it
operationsMetadata.getParameter().add(EcoreUtil.copy(param));
}
// - Constraints
for (DomainType constraint : operationConstraints.get("OperationsMetadata"))
{
// clone the object, as the caps decorators might want to modify it
operationsMetadata.getConstraint().add(EcoreUtil.copy(constraint));
}
}
// Filter Capabilities
// this part is not optional, the schema has min = 0, so we don't check for the sections