Package com.volantis.mcs.xml.validation

Examples of com.volantis.mcs.xml.validation.DOMSupplementaryValidator


        final BooleanObject firstBO = new BooleanObject();
        firstBO.setValue(false);

        // create a validator.
        DOMSupplementaryValidator firstSupplementartyValidator
                = new DOMSupplementaryValidator() {

            // javadoc inherited
            public void validate(Element element,
                                 ErrorReporter errorReporter) {
                firstBO.setValue(true);
                // check that it is the correct element
                assertEquals("Elment should be the 'shipto' element",
                             shipto,
                             element);
            }
        };

        final BooleanObject secondBO = new BooleanObject();
        secondBO.setValue(false);

        // create another validator.
        DOMSupplementaryValidator secondSupplementartyValidator
                = new DOMSupplementaryValidator() {

            // javadoc inherited
            public void validate(Element element,
                                 ErrorReporter errorReporter) {
                secondBO.setValue(true);
View Full Code Here


        shipto.setAttribute("undeclared", "true");
        final BooleanObject bo = new BooleanObject();
        bo.setValue(false);

        // create a validator.
        DOMSupplementaryValidator supplementartyValidator
                = new DOMSupplementaryValidator() {

            // javadoc inherited
            public void validate(Element element,
                                 ErrorReporter errorReporter) {
                bo.setValue(true);
View Full Code Here

        final BooleanObject bo = new BooleanObject();
        bo.setValue(false);

        // create a validator.
        DOMSupplementaryValidator supplementartyValidator
                = new DOMSupplementaryValidator() {

            // javadoc inherited
            public void validate(Element element,
                                 ErrorReporter errorReporter) {
                bo.setValue(true);
View Full Code Here

        final BooleanObject bo = new BooleanObject();
        bo.setValue(false);

        // create a validator.
        DOMSupplementaryValidator supplementartyValidator
                = new DOMSupplementaryValidator() {

            // javadoc inherited
            public void validate(Element element,
                                 ErrorReporter errorReporter) {
                bo.setValue(true);
View Full Code Here

            List validators = getSupplementaryValidators(namespaceURI,
                    elementName);

            if (validators != null) {
                Element element = tracker.currentElement();
                DOMSupplementaryValidator validator;
                for (int i = 0; i < validators.size(); i++) {
                    // ask the validator to validate the element
                    validator = (DOMSupplementaryValidator) validators.get(i);
                    validator.validate(element, errorReporter);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.xml.validation.DOMSupplementaryValidator

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.