/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { //just grab the URI and pass it back return node.getAttributeValue("href"); } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { HashMap ret = new HashMap(); ret.put("max", node.getAttributeValue("max")); ret.put("min", node.getAttributeValue("min")); return ret; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { return new URL(((URI)node.getAttributeValue("href")).toString()); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { //<xsd:attribute ref="gml:id" use="required"/> return filterfactory.gmlObjectId((String) node.getAttributeValue("id")); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { return factory.featureId(node.getAttributeValue("fid").toString()); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { return factory.featureId(node.getAttributeValue("fid").toString()); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { //<xsd:attribute ref="gml:id" use="required"/> return filterfactory.gmlObjectId((String) node.getAttributeValue("id")); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { String name = (String) value; //<xsd:attribute name="nArgs" type="xsd:string" use="required"/> String nargs = (String) node.getAttributeValue("nArgs"); return factory.functionName(name, Integer.parseInt(nargs)); }
@Override public Object parse(ElementInstance instance, Node node, Object value) throws Exception { Double minx = Double.valueOf((String) node.getAttributeValue("minx")); Double miny = Double.valueOf((String) node.getAttributeValue("miny")); Double maxx = Double.valueOf((String) node.getAttributeValue("maxx")); Double maxy = Double.valueOf((String) node.getAttributeValue("maxy")); WGS84BoundingBoxType bbox = Ows10Factory.eINSTANCE.createWGS84BoundingBoxType(); bbox.setCrs("EPSG:4326"); bbox.setDimensions(BigInteger.valueOf(2)); bbox.setLowerCorner(Arrays.asList(minx, miny)); bbox.setUpperCorner(Arrays.asList(maxx, maxy)); return bbox; } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { BoundsType bounds = factory.createBoundsType(); bounds.setMinlat((Double) node.getAttributeValue("minlat")); bounds.setMinlon((Double) node.getAttributeValue("minlon")); bounds.setMaxlat((Double) node.getAttributeValue("maxlat")); bounds.setMaxlon((Double) node.getAttributeValue("maxlon")); return bounds; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { EmailType email = factory.createEmailType(); email.setId((String) node.getAttributeValue("id")); email.setDomain((String) node.getAttributeValue("domain")); return email; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { EmailType email = factory.createEmailType(); email.setId((String) node.getAttributeValue("id")); email.setDomain((String) node.getAttributeValue("domain")); return email; }
private RequestMethodType createRequestMethodType(Ows10Factory ows10Factory, Node getOrPostNode) { RequestMethodType methodType = ows10Factory.createRequestMethodType(); String href = (String) getOrPostNode.getAttributeValue("onlineResource"); methodType.setHref(href); return methodType; } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { //<xsd:element minOccurs="0" name="GeometryOperands" type="ogc:GeometryOperandsType"/> GeometryOperand[] gos = (GeometryOperand[]) node.getChildValue(GeometryOperand[].class); //<xsd:attribute name="name" type="ogc:SpatialOperatorNameType"/> return factory.spatialOperator((String) node.getAttributeValue("name"), gos); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { CssParameter parameter = new CssParameter((String) node.getAttributeValue("name")); parameter.setExpression((Expression)value); return parameter; } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { VersionedDeleteElementType delete = wfsvFactory.createVersionedDeleteElementType(); delete.setFeatureVersion((String) node.getAttributeValue("featureVersion")); return delete; } }
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { //<xsd:element ref="se:StringValue"/> Expression str = (Expression) node.getChildValue("StringValue"); //<xsd:attribute name="stripOffPosition" type="se:stripOffPositionType"/> Expression pos = filterFactory.literal(node.getAttributeValue("stripOffPosition")); //<xsd:attribute name="stripOffChar" type="xsd:string"/> Expression ch = filterFactory.literal(node.getAttributeValue("stripOffChar")); return filterFactory.function("strTrim2", str, pos, ch); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { Expression[] operands = OGCUtils.spatial(node, filterFactory, geometryFactory); double distance = ((Double) node.getChildValue(Double.class)).doubleValue(); String units = (String) node.getChild("Distance").getAttributeValue("units"); return filterFactory.beyond(operands[0], operands[1], distance, units); } }
@Override public Object parse(ElementInstance instance, Node node, Object value) throws Exception { CssParameter option = new CssParameter((String) node.getAttributeValue("name")); option.setExpression(filterFactory.literal(instance.getText())); return option; } }
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { //<xsd:element ref="se:LookupString"/> Expression lookup = (Expression) node.getChildValue("LookupString"); //<xsd:element ref="se:StringValue"/> Expression string = (Expression) node.getChildValue("StringValue"); //<xsd:attribute name="searchDirection" type="se:searchDirectionType"/> Literal direction = filterFactory.literal(node.getAttributeValue("searchDirection")); return filterFactory.function("strPosition", lookup, string, direction); }