Package org.eclipse.xsd

Examples of org.eclipse.xsd.XSDInclude


                }
            }
           
            if ( !includeExists )
            {
                XSDInclude includeElement = xsdFactory.createXSDInclude();
                includeElement.setSchemaLocation(aSchemaLocation);
                xmlSchema.getContents().add(0, includeElement);
            }
        }
    }
View Full Code Here


     *            Name space URI
     * @param schemaLocation
     *            The schema location to be included
     */
    private void addInclude(XSDSchema schema, XSDFactory factory, String nsURI, String schemaLocation) {
        XSDInclude xsdInclude = factory.createXSDInclude();
        xsdInclude.setSchemaLocation(schemaLocation);
        schema.getContents().add(xsdInclude);       
        schema.updateElement();
    }
View Full Code Here

                }
            }
           
            if ( !includeExists )
            {
                XSDInclude includeElement = xsdFactory.createXSDInclude();
                includeElement.setSchemaLocation(aSchemaLocation);
                xmlSchema.getContents().add(0, includeElement);
            }
        }
    }
View Full Code Here

            for (Iterator itr = contents.iterator(); itr.hasNext();) {
                XSDSchemaContent content = (XSDSchemaContent) itr.next();

                if (content instanceof XSDInclude) {
                    XSDInclude include = (XSDInclude) content;

                    if (!added.contains(include.getSchemaLocation())) {
                        includes.add(include);
                        added.add(include.getSchemaLocation());

                        if (include.getIncorporatedSchema() != null) {
                            queue.addLast(include.getIncorporatedSchema());
                        } else {
                            if (LOGGER.isLoggable(Level.FINE)) {
                                LOGGER.fine("include: " + include + " resulted in null schema");
                            }
                        }
View Full Code Here

            else {
                logger.log( Level.SEVERE, "Could not find: " + schema.getSchemaLocation() + " to copy." );         
            }
           
            for (Iterator i = Schemas.getIncludes(schema).iterator(); i.hasNext();) {
                XSDInclude include = (XSDInclude) i.next();
               
                file = null;
                try {
                    file = findSchemaFile( include.getSchemaLocation() );
                }
                catch (IOException e) {
                    logger.log(Level.SEVERE, "", e );
                }
               
                if ( file != null ) {
                    includes.add( file );
                }
                else {
                    logger.log( Level.SEVERE, "Could not find: " + include.getSchemaLocation() + " to copy." );        
                }
            }

            for (Iterator i = includes.iterator(); i.hasNext();) {
                File include = (File) i.next();
View Full Code Here

        }
       
        List included = Schemas.getIncludes(schema);

        for (Iterator i = included.iterator(); i.hasNext();) {
            XSDInclude include = (XSDInclude) i.next();
           
            file = null;
            try {
              file = findSchemaFile( include.getSchemaLocation() );
            }
            catch( Exception e ) {
              logger.log( Level.SEVERE, "", e );
            }
           
      if ( file != null ) {
        includes.add(file);
        if( include.getSchema() != null ) {
          namespaces.add(include.getSchema().getTargetNamespace())
        }
        else {
          namespaces.add( schema.getTargetNamespace() );
        }
      }
      else {
        logger.log( Level.SEVERE, "Could not find: " + include.getSchemaLocation() + " to copy." );
      }
     
        }

        try {
View Full Code Here

     *            XSD factory used to produce schema
     * @param schemaLocation
     *            The schema location to be included
     */
    private void addInclude(XSDSchema schema, XSDFactory factory, String schemaLocation) {
        XSDInclude xsdInclude = factory.createXSDInclude();
        xsdInclude.setSchemaLocation(schemaLocation);
        schema.getContents().add(xsdInclude);
    }
View Full Code Here

     *            XSD factory used to produce schema
     * @param schemaLocation
     *            The schema location to be included
     */
    private void addInclude(XSDSchema schema, XSDFactory factory, String schemaLocation) {
        XSDInclude xsdInclude = factory.createXSDInclude();
        xsdInclude.setSchemaLocation(schemaLocation);
        schema.getContents().add(xsdInclude);       
        schema.updateElement();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.xsd.XSDInclude

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.