@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; }
@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; }