Package org.geotools.xml.schema

Examples of org.geotools.xml.schema.Type.encode()


            List<AttributeDescriptor> ats = ft.getAttributeDescriptors();

            if (ats != null) {
                for (int i = 0; i < ats.size(); i++) {
                    Type t = XSISimpleTypes.find(ats.get(i).getType().getBinding());
                    t.encode(null, f.getAttribute(i), ph, hints);
                }
            }
            ph.endElement(GMLSchema.NAMESPACE, "_Feature");
        }
    }
View Full Code Here


            e = wch.findElement(value);
        }

        if (e != null) {
          Type type = e.getType();
            type.encode(e, value, wch, wch.hints);
        } else {
            throw new OperationNotSupportedException(
                "Could not find an appropriate Element to use for encoding of a "
                + ((value == null) ? null : value.getClass().getName()));
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.