Examples of YSchemaBuildingException


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

        try {
            parser.parse(inputSrc);
            document = parser.getDocument();
            _xsd4YAWLBuilder.setSchema(document.getDocumentElement());
        } catch (Exception e) {
            YSchemaBuildingException f = new YSchemaBuildingException(e.getMessage());
            f.setStackTrace(e.getStackTrace());
            throw f;
        }
    }
View Full Code Here

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

        // practice to do this sooner rather than later
        schema.getContents().add(element);

        XSDTypeDefinition typeDef = schema.resolveTypeDefinition(type);
        if (null == typeDef) {
            throw new YSchemaBuildingException("Problem: could not find type in schema called: " +
                    type);
        }
        element.setTypeDefinition(typeDef);
        return element;
    }
View Full Code Here

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

                } else {
                    //there MUST be an element in the definitions with this name.
                    XSDElementDeclaration elementDecl =
                            getXSDElementDeclaration(elementName, definitions);
                    if (null == elementDecl) {
                        throw new YSchemaBuildingException(
                                "Expected a corresponding element definition for " +
                                elementName);
                    } else if (isAnElementReference(elementDecl)) {
                        throw new YSchemaBuildingException(
                                "elementDecl = " + XSDUtil.convertToString(elementDecl));
                    } else {
                        elements.add(elementDecl);
                    }
                }
            } else {
                //there exists an element name and a type name therefore we must search the
                //definitions list for a type definition.  And then build an element from the type.
                XSDTypeDefinition typeDef =
                        getXSDTypeDefinition(typeName, definitions, isSchema4Schema);
                if (null == typeDef) {
                    throw new YSchemaBuildingException(
                            "Expected a corresponding type definition for " + typeName);
                }
                XSDElementDeclaration element = _xsdFactory.createXSDElementDeclaration();
                element.setName(elementName);
View Full Code Here

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

                            return typeDef;
                        }
                    }
                }
            } catch (ClassCastException e) {
                throw new YSchemaBuildingException(
                        "Input param definitions contained an unexpected class: " + definitions);
            }
        }
        if (typeName.startsWith("xs") || isSchemaType) {
            int begin = typeName.indexOf(':');
View Full Code Here

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

                        return elementDecl;
                    }
                }
            }
        } catch (ClassCastException e) {
            throw new YSchemaBuildingException(
                    "Input param definitions contained an unexpected class: " + definitions);
        }
        return null;
    }
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.