/** * @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; }
@Override public List getProperties(Object object, XSDElementDeclaration element) throws Exception { ArrayList list = new ArrayList(); Object member = super.getProperty(object, org.geotools.gml3.GML._Feature); if (member != null) { // check for joined feature if (GMLEncodingUtils.isJoinedFeature(member)) { list.add(new Object[] {WFS.Tuple, GMLEncodingUtils.splitJoinedFeature(member)}); } else { list.add(new Object[] {GML.AbstractFeature, object}); } } else if (object instanceof FeatureCollectionType) { list.add(new Object[] {WFS.FeatureCollection, object}); } else if (object instanceof Attribute) { // encoding a ValueCollection Attribute att = (Attribute) object; list.add(new Object[] {particle(att), att.getValue()}); } return list; }
/** * * <!-- 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); }
map = (Map<Name, Object>) clientProperties; map.put(toTypeName(XLINK.HREF), "#" + id.toString());
map = (Map<Name, Object>) clientProperties; map.put(toTypeName(XLINK.HREF), "#" + id.toString());
/** * <!-- 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); }
/** * @see org.geotools.xml.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; }
@Override public List getProperties(Object object, XSDElementDeclaration element) throws Exception { ArrayList list = new ArrayList(); Object member = super.getProperty(object, org.geotools.gml3.GML._Feature); if (member != null) { //check for joined feature if (isJoinedFeature(member)) { list.add(new Object[]{WFS.Tuple, splitJoinedFeature(member)}); } else { list.add(new Object[]{GML.AbstractFeature, object}); } } else if (object instanceof FeatureCollectionType) { list.add(new Object[]{WFS.FeatureCollection, object}); } else if (object instanceof Attribute) { //encoding a ValueCollection Attribute att = (Attribute) object; list.add(new Object[]{particle(att), att.getValue()}); } return list; }