Package org.geotools.xml.impl

Examples of org.geotools.xml.impl.SchemaIndexImpl


            if ( featureTypes == null || featureTypes.isEmpty() ) {
                //grab all from catalog
                featureTypes = catalog.getFeatureTypesByNamespace(ns);
            }
           
            SchemaIndexImpl index = new SchemaIndexImpl( new XSDSchema[]{ schema });
            //all types in same namespace, write out the schema
            for (FeatureTypeInfo featureType : featureTypes ) {
                buildSchemaContent(featureType, schema, factory, index );
            }
        }
View Full Code Here


        }

        context.registerComponentInstance(namespaces);
        context.registerComponentInstance(new NamespaceSupportWrapper(namespaces));
       
        SchemaIndex index = new SchemaIndexImpl( new XSDSchema[]{configuration.schema()} );
        context.registerComponentInstance(index);
       
        context.registerComponentInstance(configuration);
       
        return bindingLoader.loadBinding(name, context);
View Full Code Here

            }
        }

        XSDSchema[] schemas = (XSDSchema[]) resolvedSchemas.toArray(new XSDSchema[resolvedSchemas
                .size()]);
        SchemaIndex index = new SchemaIndexImpl(schemas);

        return index;
    }
View Full Code Here

     * @param schema The schema instance.
     */
    public Encoder(Configuration configuration, XSDSchema schema) {
        this.schema = schema;

        index = new SchemaIndexImpl(new XSDSchema[] { schema });

        bindingLoader = new BindingLoader(configuration.setupBindings());
        bindingWalker = new BindingWalker(bindingLoader);

        //create the context
View Full Code Here

        XSDSchema schema = resource.getSchema();
        Assert.assertNotNull(schema);
        SchemaIndex index = null;
        XSDTypeDefinition type = null;
        try {
            index = new SchemaIndexImpl(new XSDSchema[] { schema });
            type = index.getTypeDefinition(new QName(namespace, name));
        } finally {
            if (index != null) {
                index.destroy();
            }
View Full Code Here

            if ( featureTypes == null || featureTypes.isEmpty() ) {
                //grab all from catalog
                featureTypes = catalog.getFeatureTypesByNamespace(ns);
            }
           
            SchemaIndexImpl index = new SchemaIndexImpl( new XSDSchema[]{ schema });
            //all types in same namespace, write out the schema
            for (FeatureTypeInfo featureType : featureTypes ) {
                buildSchemaContent(featureType, schema, factory, index );
            }
        }
View Full Code Here

            if ( featureTypes == null || featureTypes.isEmpty() ) {
                //grab all from catalog
                featureTypes = catalog.getFeatureTypesByNamespace(ns);
            }
           
            SchemaIndexImpl index = new SchemaIndexImpl( new XSDSchema[]{ schema });
            //all types in same namespace, write out the schema
            for (FeatureTypeInfo featureType : featureTypes ) {
                buildSchemaContent(featureType, schema, factory, index );
            }
        }
View Full Code Here

TOP

Related Classes of org.geotools.xml.impl.SchemaIndexImpl

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.