Examples of validate()


Examples of edu.harvard.hul.ois.mets.Mets.validate()

            Div div = new Div();
            structMap.getContent().add(div);
            mets.getContent().add(structMap);

           
            mets.validate(new MetsValidator());

            mets.write(new MetsWriter(os));
        }
        catch (MetsException e)
        {
View Full Code Here

Examples of edu.indiana.extreme.gfac.schemas.SchemaValidator.validate()

   
    public static String createWsdl(String serviceMapAsStr,boolean isAbstract) throws XregistryException{
        try {
            ServiceMapType serviceMap = ServiceMapDocument.Factory.parse(serviceMapAsStr).getServiceMap();
            SchemaValidator validator = new SchemaValidator(serviceMap);
            validator.validate();
            QName serviceQname = new QName(serviceMap.getService().getServiceName()
                    .getTargetNamespace(), serviceMap.getService().getServiceName()
                    .getStringValue());
            WSDLGenerator wsdlGenerator = new WSDLGenerator();
            Hashtable serviceTable = wsdlGenerator.generateWSDL(null, serviceQname, null,
View Full Code Here

Examples of edu.indiana.extreme.lead.metadata.LEADresourceDocument.validate()

        logger.info("leadResourceString: " + leadResourceString);

        LEADresourceDocument leadResourceDocument2 = LEADresourceDocument.Factory
                .parse(leadResourceString);
        leadResourceDocument2.validate();
        LEADResourceType leadResource2 = leadResourceDocument2
                .getLEADresource();
        String templateID2 = leadResource2.getResourceID();
        // Compare if the read templateID is same as the original one.
        assertEquals(templateID, templateID2);
View Full Code Here

Examples of edu.indiana.extreme.namespaces.x2004.x01.gFac.ApplicationDescriptionType.validate()

    public static ApplicationDescriptionType parseAppeDesc(String appDescAsStr) throws XregistryException {
        try {
            ApplicationDescriptionType appDesc = ApplicationDescriptionDocument.Factory.parse(
                    new StringReader(appDescAsStr)).getApplicationDescription();
            appDesc.validate();
            return appDesc;
        } catch (XmlException e) {
            throw new XregistryException(e);
        } catch (IOException e) {
            throw new XregistryException(e);
View Full Code Here

Examples of edu.indiana.extreme.namespaces.x2004.x01.gFac.HostDescriptionType.validate()

    public static String parseHostDesc(String hostDescAsStr) throws XregistryException {
        try {
            HostDescriptionType hostDesc = HostDescriptionDocument.Factory.parse(
                    new StringReader(hostDescAsStr)).getHostDescription();
            hostDesc.validate();
            return hostDesc.getHostName();
        } catch (XmlException e) {
            throw new XregistryException(e);
        } catch (IOException e) {
            throw new XregistryException(e);
View Full Code Here

Examples of edu.indiana.extreme.namespaces.x2004.x01.gFac.ServiceMapType.validate()

    public static ServiceMapType parseServiceDesc(String serviceDescAsStr)
            throws XregistryException {
        try {
            ServiceMapType serviceDesc = ServiceMapDocument.Factory.parse(
                    new StringReader(serviceDescAsStr)).getServiceMap();
            serviceDesc.validate();
            return serviceDesc;
        } catch (XmlException e) {
            throw new XregistryException(e);
        } catch (IOException e) {
            throw new XregistryException(e);
View Full Code Here

Examples of edu.indiana.extreme.xbaya.gpel.script.BPELScript.validate()

            // values.
            BPELScript bpel = new BPELScript(this.workflow);

            // Check if there is any errors in the workflow first.
            ArrayList<String> warnings = new ArrayList<String>();
            if (!bpel.validate(warnings)) {
                StringBuilder buf = new StringBuilder();
                for (String warning : warnings) {
                    buf.append("- ");
                    buf.append(warning);
                    buf.append("\n");
View Full Code Here

Examples of edu.indiana.extreme.xbaya.jython.script.JythonScript.validate()

        JythonScript script = new JythonScript(workflow, this.engine
                .getConfiguration());

        // Check if there is any errors in the workflow first.
        ArrayList<String> warnings = new ArrayList<String>();
        if (!script.validate(warnings)) {
            StringBuilder buf = new StringBuilder();
            for (String warning : warnings) {
                buf.append("- ");
                buf.append(warning);
                buf.append("\n");
View Full Code Here

Examples of edu.indiana.extreme.xbaya.scufl.script.ScuflScript.validate()

      ScuflScript script = new ScuflScript(workflow, this.engine
                .getConfiguration());

        // Check if there is any errors in the workflow first.
        ArrayList<String> warnings = new ArrayList<String>();
        if (!script.validate(warnings)) {
            StringBuilder buf = new StringBuilder();
            for (String warning : warnings) {
                buf.append("- ");
                buf.append(warning);
                buf.append("\n");
View Full Code Here

Examples of edu.isi.karma.transformation.tokenizer.PythonTransformationAsURIValidator.validate()

              if(comm instanceof PythonTransformationCommand)
              {
                PythonTransformationCommand pyTransform = (PythonTransformationCommand) comm;
                String transformationCode = pyTransform.getTransformationCode();
                PythonTransformationAsURIValidator validator = new PythonTransformationAsURIValidator();
                isR2RMLCompatible = isR2RMLCompatible && validator.validate(transformationCode);
               
              }
              else
              {
                isR2RMLCompatible = false;
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.