Package org.geotools.xml.schema

Examples of org.geotools.xml.schema.Type


            Map hints) throws IOException, OperationNotSupportedException {
            if ((parent != null) && parent.canEncode(element, value, hints)) {
                parent.encode(element, value, output, hints);
            } else {
                output.startElement(element.getNamespace(), element.getName(), null);
                Type type=element.getType();
                if( type instanceof SimpleType ){
                    SimpleType simple=(SimpleType) type;
                    simple.encode(element, value, output, hints);
                }else if (type instanceof ComplexType) {
                    ComplexType complex = (ComplexType) type;
View Full Code Here


            SimpleFeatureType ft = f.getFeatureType();
            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

     * @throws SAXException
     */
    protected Type lookUpType( String qname ) throws SAXException {
        if (qname == null)
            return null;
        Type t = null;
        t = lookUpComplexType(qname);
        t = t == null ? lookUpSimpleType(qname) : t;
        return t;
    }
View Full Code Here

            i = arg0.getNamespace() == null ? arg1.getNamespace() == null ? 0 : 1 : arg0.getNamespace().compareTo(
                    arg1.getNamespace());
            if (i != 0)
                return i;

            Type a00 = arg0.getParent();
            Type a01 = arg1.getParent();

            if (a00 == a01)
                return 0;
            if (a00 == null)
                return 1;
View Full Code Here

        Element element = children[i];
        if( localName.equals(element.getName()) && namespaceURI.equals(element.getNamespace()) )
          return element;
      }
      if( complexType.getParent()!=null ){
        Type parent = complexType.getParent();
        return findChildElement((ComplexType) parent, localName, namespaceURI);
      }
    }else{
      return type.findChildElement(localName);
    }
View Full Code Here

     *
     * @throws SAXException
     */
    public XMLElementHandler createElementHandler(Element eth)
        throws SAXException {
        Type type = eth.getType();
               
        if (type instanceof SimpleType) {
            return new SimpleElementHandler(eth);
        }
        if (type instanceof ComplexType) {
View Full Code Here

        if (e == null) {
            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

Related Classes of org.geotools.xml.schema.Type

Copyright © 2018 www.massapicom. 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.