CompartmentMapping compartmentMapping = new CompartmentMapping();
spatialCompartment.setCompartmentMapping(compartmentMapping);
return compartmentMapping;
}
} else if (contextObject instanceof Parameter) {
Parameter param = (Parameter) contextObject;
SpatialParameterPlugin spatialParam = null;
if (param.getExtension(SpatialConstants.namespaceURI) != null) {
spatialParam = (SpatialParameterPlugin) param.getExtension(SpatialConstants.namespaceURI);
} else {
spatialParam = new SpatialParameterPlugin(param);
param.addExtension(SpatialConstants.namespaceURI, spatialParam);
}
if (elementName.equals(SpatialConstants.spatialSymbolReference)) {
SpatialSymbolReference ssr = new SpatialSymbolReference();
spatialParam.setParamType(ssr);