Package org.opengis.feature.type

Examples of org.opengis.feature.type.Schema


    protected final AttributeType findType(XSDTypeDefinition xsdType) {
        Name name = name(xsdType);

        if (imports != null) {
            for (Iterator itr = imports.values().iterator(); itr.hasNext();) {
                Schema imported = (Schema) itr.next();

                if (imported.containsKey(name)) {
                    return (AttributeType) imported.get(name);
                }
            }
        }

        throw new IllegalStateException("Could not find imported type: " + name);
View Full Code Here


                getLog().error("Could note load class: " + schemaClassName);
                    return;
            }
           
            getLog().info("Loading import schema: " + schemaClassName);
            Schema gtSchema = null;
            try {
                    gtSchema = (Schema) schemaClass.newInstance();
                }
            catch( Exception e ) {
                getLog().error("Could not insantiate class: " + schemaClass.getName());
View Full Code Here

     * @param version
     */
    protected void init() {
        List<Schema> schemas = new ArrayList<Schema>();
        schemas.add(new XSSchema().profile()); // encoding of common java types
        Schema hack = new SchemaImpl(XS.NAMESPACE);

        AttributeTypeBuilder builder = new AttributeTypeBuilder();
        builder.setName("date");
        builder.setBinding(Date.class);
        hack.put(new NameImpl(XS.DATETIME), builder.buildType());

        schemas.add(hack);

        // GML 2
        //
View Full Code Here

    /**
     * Test that this class can be loaded.
     */
    public static void main(String[] args) {
        Schema schema = new GTSSchema();
        for (Entry<Name, AttributeType> entry : new TreeMap<Name, AttributeType>(schema).entrySet()) {
            System.out.println("Type: " + entry.getValue().getName());
            System.out.println("    Super type: " + entry.getValue().getSuper().getName());
            if (entry.getValue() instanceof ComplexType) {
                for (PropertyDescriptor descriptor : ((ComplexType) entry.getValue())
View Full Code Here

    /**
     * Test that this class can be loaded.
     */
    public static void main(String[] args) {
        Schema schema = new GSSSchema();
        for (Entry<Name, AttributeType> entry : new TreeMap<Name, AttributeType>(schema).entrySet()) {
            System.out.println("Type: " + entry.getValue().getName());
            System.out.println("    Super type: " + entry.getValue().getSuper().getName());
            if (entry.getValue() instanceof ComplexType) {
                for (PropertyDescriptor descriptor : ((ComplexType) entry.getValue())
View Full Code Here

            if (!FOUNDATION_TYPES.isEmpty()) {
                typeRegistry.putAll(FOUNDATION_TYPES);
                return;
            }
           
            Schema schema;
            schema = new XSSchema();
            importSchema(schema);
           
            onCreateFoundationTypes();
          
View Full Code Here

     * schema depends on.
     */
    public final List<Schema> getAllTypeMappingProfiles() {
        LinkedList profiles = new LinkedList();
        for(XSD xsd : getAllDependencies()) {
            Schema profile = xsd.getTypeMappingProfile();
            if (!profile.isEmpty()) {
                profiles.add(profile);
            }
        }
       
        return profiles;
View Full Code Here

   
    @Override
    protected Schema buildTypeMappingProfile(Schema typeSchema) {
        //reuse the regular gml3 type mapping profile bindings, but override
        // the namespace uri
        Schema gml3Profile = org.geotools.gml3.GML.getInstance().getTypeMappingProfile();
        Set profile = new LinkedHashSet();
        for (Name n : gml3Profile.keySet()) {
            n = new NameImpl(NAMESPACE, n.getLocalPart());
            if (typeSchema.get(n) != null) {
                profile.add(n);   
            }
        }
View Full Code Here

    /**
     * Test that this class can be loaded.
     */
    public static void main(String[] args) {
        Schema schema = new GSRSchema();
        for (Entry<Name, AttributeType> entry : new TreeMap<Name, AttributeType>(schema).entrySet()) {
            System.out.println("Type: " + entry.getValue().getName());
            System.out.println("    Super type: " + entry.getValue().getSuper().getName());
            if (entry.getValue() instanceof ComplexType) {
                for (PropertyDescriptor descriptor : ((ComplexType) entry.getValue())
View Full Code Here

    /**
     * Test that this class can be loaded.
     */
    public static void main(String[] args) {
        Schema schema = new GCOSchema();
        for (Entry<Name, AttributeType> entry : new TreeMap<Name, AttributeType>(schema).entrySet()) {
            System.out.println("Type: " + entry.getValue().getName());
            System.out.println("    Super type: " + entry.getValue().getSuper().getName());
            if (entry.getValue() instanceof ComplexType) {
                for (PropertyDescriptor descriptor : ((ComplexType) entry.getValue())
View Full Code Here

TOP

Related Classes of org.opengis.feature.type.Schema

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.