Examples of DocumentValidator


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

        // Normally the ElementOutputStateBuilder would be configured when
        // processing the element, but because this element isn't processed we
        // need to manually set the context and create the output state.
        elementImpl.getOutputState();

        DocumentValidator validator = xdimeContext.getDocumentValidator();
        validator.open(elementImpl.getElementType());
        xdimeContext.pushElement(element);
    }
View Full Code Here

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

        // Do the equivalent of #pushElement but without getting element
        // output state builder.
        XDIMEElementInternal elementImpl = objectMock;

        DocumentValidator validator = xdimeContext.getDocumentValidator();
        validator.open(elementImpl.getElementType());
        xdimeContext.pushElement(objectMock);

        startDocument();

        AttributesImpl attr = new AttributesImpl();
View Full Code Here

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

    }

    private void openElementForValidation(ElementType childType)
            throws Exception {

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

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

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

    }

    private void closeElementForValidation(ElementType childType)
            throws Exception {

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

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

    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

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

    }

    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

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

    }

    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
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.