Package com.volantis.mcs.xml.schema.validation

Examples of com.volantis.mcs.xml.schema.validation.DocumentValidator


    }

    private void doElementForValidation(ElementType childType)
            throws Exception {

        DocumentValidator validator = xdimeContext.getDocumentValidator();
        validator.open(childType);
        validator.close(childType);
    }
View Full Code Here


    }

    private void closeElementForValidation(ElementType childType)
            throws Exception {

        DocumentValidator validator = xdimeContext.getDocumentValidator();
        validator.close(childType);
    }
View Full Code Here

    public void testWidget() throws Exception {

        startDocumentAndElement(getElementName());

        DocumentValidator validator = xdimeContext.getDocumentValidator();

        validator.open(XHTML2Elements.THEAD);
        validator.open(XHTML2Elements.TR);
        validator.open(XHTML2Elements.TD);
        validator.close(XHTML2Elements.TD);
        validator.close(XHTML2Elements.TR);
        validator.close(XHTML2Elements.THEAD);  
       
        validator.open(XHTML2Elements.TFOOT);
        validator.open(XHTML2Elements.TR);
        validator.open(XHTML2Elements.TD);
        validator.close(XHTML2Elements.TD);
        validator.close(XHTML2Elements.TR);
        validator.close(XHTML2Elements.TFOOT);  

        validator.open(XHTML2Elements.TBODY);
        validator.open(XHTML2Elements.TR);
        validator.open(XHTML2Elements.TD);
        validator.close(XHTML2Elements.TD);
        validator.close(XHTML2Elements.TR);
        validator.close(XHTML2Elements.TBODY);  

        validator.open(WidgetElements.TBODY);
        validator.open(XHTML2Elements.TR);
        validator.open(XHTML2Elements.TD);
        validator.close(XHTML2Elements.TD);
        validator.close(XHTML2Elements.TR);
        validator.close(WidgetElements.TBODY);  

        validator.open(WidgetElements.TBODY);
        validator.open(WidgetElements.LOAD);
        validator.close(WidgetElements.LOAD);
        validator.open(XHTML2Elements.TR);
        validator.open(XHTML2Elements.TD);
        validator.close(XHTML2Elements.TD);
        validator.close(XHTML2Elements.TR);
        validator.close(WidgetElements.TBODY);  

        endElementAndDocument(getElementName());
    }
View Full Code Here

    }

    protected void runThroughValidator(List /* of ElementType */ elements)
            throws ValidationException {
       
        DocumentValidator validator = xdimeContext.getDocumentValidator();
        Iterator i = elements.iterator();
        while(i.hasNext()) {
            ElementType element = (ElementType)i.next();
            validator.open(element);
            validator.close(element);  
        }           
    }
View Full Code Here

    }

    protected void runThroughValidator(List elements)
            throws ValidationException {
       
        DocumentValidator validator = xdimeContext.getDocumentValidator();
        Iterator i = elements.iterator();
        while(i.hasNext()) {
            ElementType element = (ElementType)i.next();
            validator.open(element);
            validator.close(element);  
        }           
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.xml.schema.validation.DocumentValidator

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.