Package au.edu.qut.yawl.exceptions

Examples of au.edu.qut.yawl.exceptions.YSyntaxException


    public void setPrimarySchema(String schemaStr) throws YSchemaBuildingException, YSyntaxException {
        //first of all check that the schema itself is valid
        SchemaForSchemaValidator tmp = SchemaForSchemaValidator.getInstance();
        String results = tmp.validateSchema(schemaStr);
        if (results.length() > 0) {
            throw new YSyntaxException(results);
        }

        //now set the schema
        Document document = null;
        DOMParser parser = new DOMParser();
View Full Code Here


        }

        //now check the specification file against its' respective schema
        String errors = YawlXMLSpecificationValidator.getInstance().checkSchema(specificationSetFileID, version);
        if (errors == null || errors.length() > 0) {
            throw new YSyntaxException(
                    " The file [" + specificationSetFileID + "] failed to verify against YAWL's Schema:\n"
                    + errors);
        }

        //now build a set of specifications - verification has not yet occured.
View Full Code Here

            XMLOutputter xmlo = new XMLOutputter(Format.getCompactFormat());
            String schemaStr = xmlo.outputString(schemaElem);
            try {
                _specification.setSchema(schemaStr);
            } catch (YSchemaBuildingException e) {
                YSyntaxException f = new YSyntaxException(e.getMessage());
                f.setStackTrace(e.getStackTrace());
                throw f;
            }
        }
    }
View Full Code Here

    public void setSchema(Element schemaElemement) throws YSyntaxException {
        XSDPrototypicalSchema proto = XSDPrototypicalSchema.getInstance();
        _schema = proto.createSchema(schemaElemement);

        if (_schema.getTargetNamespace() != null) {
            throw new YSyntaxException("YAWL does not support schemas with target namespaces.");
        }
    }
View Full Code Here

TOP

Related Classes of au.edu.qut.yawl.exceptions.YSyntaxException

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.