Package org.exolab.castor.xml.schema

Examples of org.exolab.castor.xml.schema.SchemaContextImpl


        if (parser == null) {
            fail("Unable to create SAX parser.");
        }

        SchemaContext schemaContext = new SchemaContextImpl();
        SchemaUnmarshaller schemaUnmarshaller = null;
        try {
            schemaUnmarshaller = new SchemaUnmarshaller(schemaContext);
        } catch (XMLException e) {
            fail(e.getMessage());
View Full Code Here


     * @throws IOException
     *             if no Parser is available
     */
    private void init() throws IOException {
        // -- get default parser from Configuration
        _schemaContext = new SchemaContextImpl();

        Parser parser = _schemaContext.getParser();

        if (parser == null) {
            String message = "fatal error: unable to create SAX parser.";
View Full Code Here

    /**
     * A constructor to create an empty uninitialized SchemaWriter via XMLContext.
     */
    public SchemaWriter() {
        super();
        _schemaContext = new SchemaContextImpl();
    }
View Full Code Here

    private Schema testReadingSchema(final String url) {
        verbose("--> Reading XML Schema: " + url);
        try {
            SchemaReader reader = new SchemaReader();
           
            reader.setSchemaContext(new SchemaContextImpl());
            reader.setInputSource(new InputSource(url));
           
            Schema returnValue  = reader.read();
            if (_failure != null && _failure.getContent() && _failure.getFailureStep() != null &&
                 _failure.getFailureStep().equals(FailureStepType.PARSE_SCHEMA)) {
View Full Code Here

            File         output = new File(_outputRootFile, fileName);
            FileWriter   writer = new FileWriter(output);
           
            SchemaWriter schemaWriter = new SchemaWriter();
            schemaWriter.setSchemaContext(new SchemaContextImpl());
            schemaWriter.setDocumentHandler(new PrintWriter(writer, true));
           
            schemaWriter.write(schema);
            writer.close();
        } catch (Exception e) {
View Full Code Here

            }
            if (parser == null) {
                throw new BuildException("Unable to create SAX parser.");
            }

            SchemaContext schemaContext = new SchemaContextImpl();
            SchemaUnmarshaller schemaUnmarshaller = null;
            try {
                schemaUnmarshaller = new SchemaUnmarshaller(schemaContext);
            } catch (XMLException e) {
                throw new BuildException("Unable to create schema unmarshaller.", e);
View Full Code Here

        if (parser == null) {
            _dialog.notify("fatal error: unable to create SAX parser.");
            return;
        }

        SchemaContext schemaContext = new SchemaContextImpl();
        SchemaUnmarshaller schemaUnmarshaller = null;
        try {
           schemaUnmarshaller = new SchemaUnmarshaller(schemaContext);
        } catch (XMLException e) {
            //--The default constructor cannot throw exception so this should never happen
View Full Code Here

TOP

Related Classes of org.exolab.castor.xml.schema.SchemaContextImpl

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.