/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(InstanceComponent instance, Object value) throws Exception { return ((FilterFactory2) filterFactory) .property( (String) value, GML3EncodingUtils.copyNamespaceSupport((namespaceSupport))); } }
public Object parse(ElementInstance instance, Node node, Object value) throws Exception { PropertyName propertyName = (PropertyName) super.parse(instance, node, value); // JD: temporary hack, this should be carried out at evaluation time String name = propertyName.getPropertyName(); if (name != null && name.matches("\\w+:\\w+")) { // namespace qualified name, ensure the prefix is valid String prefix = name.substring(0, name.indexOf(':')); String namespaceURI = namespaceSupport.getURI(prefix); // only accept if its an application schema namespace, or gml if (!GML.NAMESPACE.equals(namespaceURI) && (catalog.getNamespaceByURI(namespaceURI) == null)) { throw new WFSException("Illegal attribute namespace: " + namespaceURI); } } if (factory instanceof FilterFactory2) { return ((FilterFactory2) factory) .property( propertyName.getPropertyName(), GML3EncodingUtils.copyNamespaceSupport(namespaceSupport)); } return propertyName; } }