Package org.enhydra.shark.xpdl

Examples of org.enhydra.shark.xpdl.StandardPackageValidator


                    });
            loggingManager.info("JaWEManager -> Working with '" + xpdlvClass + "' implementation of XPDL Validator");
        } catch (Throwable ex) {
            XPDLValidatorSettings vs = new XPDLValidatorSettings();
            vs.init(null);
            xpdlValidator = new StandardPackageValidator(vs.getProperties());
            if (JaWE.getJaWEVersion() != JaWE.COMMUNITY_VERSION) {
                String msg = "JaweManager -> Problems while instantiating XPDL Validator class '" + xpdlvClass + "' - using default implementation!";
                loggingManager.error(msg, ex);
            } else {
                loggingManager.info("JaWEManager -> Working with '" + StandardPackageValidator.class.getName() + "' implementation of XPDL Validator");
View Full Code Here


    public boolean checkValidity(Package el,
            boolean fullCheck,
            boolean specNotif,
            boolean initialOrDesignTimeValidation) {
        // configure validator
        StandardPackageValidator xpdlValidator = JaWEManager.getInstance().getXPDLValidator();
        xpdlValidator.init(JaWEManager.getInstance().getXPDLHandler(),
                XMLUtil.getPackage(el),
                !specNotif,
                settings.getEncoding(),
                JaWEManager.getInstance().getStartingLocale());
        List l = checkValidity(el, fullCheck);
View Full Code Here

        sendEvent(info);
        return (l == null || l.size() == 0);
    }

    public List checkValidity(XMLElement el, boolean fullCheck) {
        StandardPackageValidator xpdlValidator = JaWEManager.getInstance().getXPDLValidator();

        if (el == null) {
            return null;
        }

        List existingErrors = new ArrayList();
        xpdlValidator.validateElement(el, existingErrors, fullCheck);
        List verrors = new ArrayList();
        for (int i = 0; i < existingErrors.size(); i++) {
            ValidationError verr = new ValidationError((XMLValidationError) existingErrors.get(i));
            verrors.add(verr);
        }
View Full Code Here

        xpdlInfoList.clear();
        clearHistory();
        selectionMng.clear();
        edit.clear();
        undoSelectionEvent = null;
        StandardPackageValidator val = JaWEManager.getInstance().getXPDLValidator();
        if (val != null) {
            val.clearCache();
        }
        if (JaWEManager.getInstance().getXPDLElementEditor() != null && JaWEManager.getInstance().getXPDLElementEditor().getWindow() != null) {
            JaWEManager.getInstance().getXPDLElementEditor().close();
        }
        XPDLElementChangeInfo info = createInfo(null,
View Full Code Here

        boolean save = true;
        boolean allowInvalidPackageSaving = jc.getControllerSettings().allowInvalidPackageSaving() && !"Released".equalsIgnoreCase(jc.getMainPackage().getRedefinableHeader().getPublicationStatus());
        boolean isModelOK = false;

        if (!allowInvalidPackageSaving) {
            StandardPackageValidator xpdlValidator = JaWEManager.getInstance().getXPDLValidator();
            xpdlValidator.init(
                    JaWEManager.getInstance().getXPDLHandler(),
                    jc.getMainPackage(),
                    false,
                    jc.getControllerSettings().getEncoding(),
                    JaWEManager.getInstance().getStartingLocale());
View Full Code Here

TOP

Related Classes of org.enhydra.shark.xpdl.StandardPackageValidator

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.