Examples of resolveElementDeclaration()


Examples of org.eclipse.xsd.XSDSchema.resolveElementDeclaration()

            schema.getQNamePrefixToNamespaceMap().put("wfs", WFS.NAMESPACE);
            schema.getQNamePrefixToNamespaceMap().put("gml", GML.NAMESPACE);
           
            //import wfs schema
            Schemas.importSchema( schema ,wfs.getSchema() );
            schema.resolveElementDeclaration( WFS.NAMESPACE, "FeatureCollection" );
            /*
            XSDImport imprt = factory.createXSDImport();
            imprt.setNamespace(WFS.NAMESPACE);
           
            String location = ResponseUtils.appendPath( baseURL, "schemas/wfs/");
View Full Code Here

Examples of org.eclipse.xsd.XSDSchema.resolveElementDeclaration()

  {
    XSDElementDeclaration result = null;
    for (Iterator i = resolveSchema(namespace).iterator(); i.hasNext();)
    {
      XSDSchema schema = (XSDSchema)i.next();
      result = schema.resolveElementDeclaration(namespace, localName);
      if (isComponentDefined(result))
        return result;
    }

    // Could not resolve. Try against all <import>ed and inlined schemas.
View Full Code Here

Examples of org.eclipse.xsd.XSDSchema.resolveElementDeclaration()

    // Could not resolve. Try against all <import>ed and inlined schemas.
    for (Iterator i = getImportedOrInlinedSchemas().iterator(); i.hasNext();)
    {
      XSDSchema schema = (XSDSchema)i.next();
      result = schema.resolveElementDeclaration(namespace, localName);
      if (isComponentDefined(result))
        return result;
    }

    return result;
View Full Code Here

Examples of org.eclipse.xsd.XSDSchema.resolveElementDeclaration()

   
    @Override
    protected XSDSchema buildSchema() throws IOException {
        XSDSchema schema =  super.buildSchema();
       
        schema.resolveElementDeclaration(NAMESPACE, "_Feature").eAdapters()
            .add(new SubstitutionGroupLeakPreventer());
        schema.eAdapters().add(new ReferencingDirectiveLeakPreventer());
        return schema;
    }
}
View Full Code Here

Examples of org.eclipse.xsd.XSDSchema.resolveElementDeclaration()

        xsd.getQNamePrefixToNamespaceMap().put("gml", "http://www.opengis.net/gml");

        XSDElementDeclaration element = factory.createXSDElementDeclaration();
        element.setName(simpleFeatureType.getTypeName());

        XSDElementDeclaration _FEATURE = xsd.resolveElementDeclaration(gmlNamespace, "_Feature");
        element.setSubstitutionGroupAffiliation(_FEATURE);

        XSDComplexTypeDefinition ABSTRACT_FEATURE_TYPE = xsd.resolveComplexTypeDefinition(
                gmlNamespace, "AbstractFeatureType");
View Full Code Here

Examples of org.eclipse.xsd.XSDSchema.resolveElementDeclaration()

        List result = new ArrayList();
        XSDParticle previous = null;
        String previousName = null;
        for (SimpleLiteral sl : record.getDCElement()) {
            XSDSchema dctSchema = DCT.getInstance().getSchema();
            XSDElementDeclaration declaration = dctSchema.resolveElementDeclaration(sl.getName());
            if(declaration.getTypeDefinition() == null) {
                XSDSchema dcSchema = DC.getInstance().getSchema();
                declaration = dcSchema.resolveElementDeclaration(sl.getName());
            }
            if(declaration != null) {
View Full Code Here

Examples of org.eclipse.xsd.XSDSchema.resolveElementDeclaration()

        for (SimpleLiteral sl : record.getDCElement()) {
            XSDSchema dctSchema = DCT.getInstance().getSchema();
            XSDElementDeclaration declaration = dctSchema.resolveElementDeclaration(sl.getName());
            if(declaration.getTypeDefinition() == null) {
                XSDSchema dcSchema = DC.getInstance().getSchema();
                declaration = dcSchema.resolveElementDeclaration(sl.getName());
            }
            if(declaration != null) {
                XSDParticle particle;
                if(previousName != null && sl.getName().equals(previousName)) {
                    particle = previous;
View Full Code Here

Examples of org.eclipse.xsd.XSDSchema.resolveElementDeclaration()

   
    @Override
    protected XSDSchema buildSchema() throws IOException {
        XSDSchema schema =  super.buildSchema();
       
        schema.resolveElementDeclaration(NAMESPACE, "_Feature").eAdapters()
            .add(new SubstitutionGroupLeakPreventer());
        schema.eAdapters().add(new ReferencingDirectiveLeakPreventer());
        return schema;
    }
}
View Full Code Here

Examples of org.eclipse.xsd.XSDSchema.resolveElementDeclaration()

            schema.getQNamePrefixToNamespaceMap().put("wfs", WFS.NAMESPACE);
            schema.getQNamePrefixToNamespaceMap().put("gml", GML.NAMESPACE);
           
            //import wfs schema
            Schemas.importSchema( schema ,wfs.getSchema() );
            schema.resolveElementDeclaration( WFS.NAMESPACE, "FeatureCollection" );
            /*
            XSDImport imprt = factory.createXSDImport();
            imprt.setNamespace(WFS.NAMESPACE);
           
            String location = ResponseUtils.appendPath( baseURL, "schemas/wfs/");
View Full Code Here

Examples of org.eclipse.xsd.XSDSchema.resolveElementDeclaration()

            schema.getQNamePrefixToNamespaceMap().put("wfs", WFS.NAMESPACE);
            schema.getQNamePrefixToNamespaceMap().put("gml", GML.NAMESPACE);
           
            //import wfs schema
            Schemas.importSchema( schema ,wfs.getSchema() );
            schema.resolveElementDeclaration( WFS.NAMESPACE, "FeatureCollection" );
            /*
            XSDImport imprt = factory.createXSDImport();
            imprt.setNamespace(WFS.NAMESPACE);
           
            String location = ResponseUtils.appendPath( baseURL, "schemas/wfs/");
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.