/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { return GML3ParsingUtils.lineString(node, gFactory, csFactory); }
/** * @see AbstractComplexBinding#encode(java.lang.Object, org.w3c.dom.Document, * org.w3c.dom.Element) */ @Override public Element encode(Object object, Document document, Element value) throws Exception { if (object instanceof ComplexAttribute) { ComplexAttribute complex = (ComplexAttribute) object; checkXlinkHref(complex); GML3EncodingUtils.encodeClientProperties(complex, value); GML3EncodingUtils.encodeSimpleContent(complex, document, value); } return value; }
/** * @deprecated use {@link #AbstractFeatureTypeEncode(Object, Document, Element, XSDIdRegistry)} */ public static Element AbstractFeatureType_encode( Object object, Document document, Element value, XSDIdRegistry idSet) { return INSTANCE.AbstractFeatureTypeEncode(object, document, value, idSet); }
public static Element multiPolygon(Document document, Node parent) { Element multiPolygon = element(qName("MultiPolygon"), document, parent); Element polygonMember = element(qName("polygonMember"), document, multiPolygon); polygon(document, polygonMember); polygonMember = element(qName("polygonMember"), document, multiPolygon); polygon(document, polygonMember); return multiPolygon; }
public static Element lineStringProperty(Document document, Node parent) { Element property = element(qName("lineStringProperty"), document, parent); lineString(document, property); return property; }
public static Element polygonWithPosList( Document document, Node parent, QName name, boolean withInterior) { Element polygon = element(name, document, parent); Element exterior = element(qName("exterior"), document, polygon); linearRingWithPosList(document, exterior); if (withInterior) { Element interior = element(qName("interior"), document, polygon); linearRingWithPosList(document, interior); } return polygon; }
public void testNoInterior() throws Exception { GML3MockData.polygon(document, document); Polygon polygon = (Polygon) parse(); assertNotNull(polygon); }
public void testEncode2D() throws Exception { Point point = GML3MockData.pointLite2D(); Document doc = encode(point, GML.Point); checkDimension(doc, GML.Point.getLocalPart(), 2); checkPosOrdinates(doc, 2); }
public void testParse() throws Exception { GML3MockData.multiGeometry(document, document); GeometryCollection multiGeom = (GeometryCollection) parse(); assertNotNull(multiGeom); assertEquals(3, multiGeom.getNumGeometries()); }
public void testParse() throws Exception { GML3MockData.lineStringProperty(document, document); LineString line = (LineString) parse(); assertNotNull(line); }
public void testEncode2D() throws Exception { Point point = GML3MockData.pointLite2D(); CoordinateSequence seq = point.getCoordinateSequence(); Document doc = encode(seq, GML.pos); checkPosOrdinates(doc, 2); }
public void testParseWithSurfaceMembers() throws Exception { GML3MockData.multiSurface(document, document, false); MultiPolygon mpoly = (MultiPolygon) parse(); assertEquals(2, mpoly.getNumGeometries()); } }
public void testEncodeCurved() throws Exception { Polygon poly = GML3MockData.curvePolygon(); Document doc = encode(poly, GML.Polygon); // print(doc); } }
public Element encode(Object object, Document document, Element value) throws Exception { Property property = (Property) object; // I don't think we can assign values to this type, so only encode client properties // for the mean time GML3EncodingUtils.encodeClientProperties(property, value); return value; }
/** * @see AbstractComplexBinding#encode(java.lang.Object, org.w3c.dom.Document, * org.w3c.dom.Element) */ @Override public Element encode(Object object, Document document, Element value) throws Exception { checkExistingId((Geometry) object); return value; }
@Override public List getProperties(Object object, XSDElementDeclaration element) throws Exception { return encodingUtils.AbstractFeatureTypeGetProperties( object, element, schemaIndex, configuration); } }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { // TODO: implement and remove call to super return super.parse(instance, node, value); }
public static Element multiLineString(Document document, Node parent) { Element multiLineString = element(qName("MultiLineString"), document, parent); Element lineStringMember = element(qName("lineStringMember"), document, multiLineString); lineString(document, lineStringMember); lineStringMember = element(qName("lineStringMember"), document, multiLineString); lineString(document, lineStringMember); return multiLineString; }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { return GML3ParsingUtils.lineString(node, gf, csf); }