Package au.edu.qut.yawl.schema

Examples of au.edu.qut.yawl.schema.XMLToolsForYAWL


        }
    }


    private String buildSchema() throws YSchemaBuildingException {
        XMLToolsForYAWL xmlt = getSpecification().getToolsForYAWL();
        Collection params = getInputParameters().values();

        Instruction[] instructionsArr = xmlt.buildInstructions(params);

        return xmlt.createYAWLSchema(instructionsArr, getRootDataElementName());
    }
View Full Code Here


        _resetNet = net;
    }

    private String buildSchema(Collection params) throws YSchemaBuildingException {

        XMLToolsForYAWL xmlt = _net.getSpecification().getToolsForYAWL();

        Instruction[] instructionsArr = xmlt.buildInstructions(params);

        return xmlt.createYAWLSchema(instructionsArr, _decompositionPrototype.getRootDataElementName());
    }
View Full Code Here

    private YMetaData _metaData;


    public YSpecification(String specURI) {
        _specURI = specURI;
        _xmlToolsForYAWL = new XMLToolsForYAWL();
    }
View Full Code Here

                        "] of " + this +
                        " " + e.getMessage(),
                        YVerificationMessage.ERROR_STATUS));
            }
        }
        XMLToolsForYAWL xty = _parentDecomposition.getSpecification().getToolsForYAWL();
        //check schema contains type with typename.
        if (null != _name) {
            boolean isSchemForSchemType =
                    xty.getSchema4SchemaNameSpace().equals(_namespaceURI);
            if (true == _isUntyped) {
                if (null != _dataTypeName) {
                //todo [in future - if we ever disallow untyped elements]
                //todo we may want to catch this and _report it.
                }
            } else if (!xty.isValidType(_dataTypeName, isSchemForSchemType)) {
                messages.add(new YVerificationMessage(
                        this,
                        "The type library (Schema) in specification contains no " +
                        "type definition with name [" + _dataTypeName + "].  " +
                        "Therefore the decomposition " + _parentDecomposition +
                        " cannot create this variable.",
                        YVerificationMessage.ERROR_STATUS));
            }
        } else if (null != _elementName) {
            boolean schemaContainsElement =
                    xty.getPrimarySchemaElementNames().contains(_elementName);
            if (!schemaContainsElement) {
                messages.add(new YVerificationMessage(
                        this,
                        "The type library (Schema) in specification contains no " +
                        "element definition with name [" + _elementName + "].  " +
View Full Code Here

            //else if (inputParam.getName() != null) {
            //    input.append(inputParam.getName()).append(",");
            //}
        }

        XMLToolsForYAWL xmlToolsForYawl = new XMLToolsForYAWL();
        String schemaLibrary = specData.getSchemaLibrary();
        xmlToolsForYawl.setPrimarySchema(schemaLibrary);
        String myNewSchema = xmlToolsForYawl.createYAWLSchema(
          (Instruction[]) instructions.toArray(
            new Instruction[instructions.size()])
            , specData.getRootNetID());
       
       return (myNewSchema);
View Full Code Here

                        instructions.add(instruction);
                    }
                }
            }

            XMLToolsForYAWL xmlToolsForYawl = new XMLToolsForYAWL();
            String schemaLibrary = specData.getSchemaLibrary();
            xmlToolsForYawl.setPrimarySchema(schemaLibrary);
            myNewSchema = xmlToolsForYawl.createYAWLSchema(
                    (Instruction[]) instructions.toArray(new Instruction[instructions.size()]),
                    taskInfo.getDecompositionID());         
        }
       
        return(myNewSchema);
View Full Code Here

TOP

Related Classes of au.edu.qut.yawl.schema.XMLToolsForYAWL

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.