Package com.volantis.mcs.xml.schema.model

Examples of com.volantis.mcs.xml.schema.model.ElementType


    /**
     * Test for SetSkipTimes response element
     */
    public void testSetSkipTimesElement() throws Exception {
        ElementType elementType = TickerResponseElements.SET_SKIP_TIMES;
        Class attrClass = SetSkipTimesAttributes.class;
           
        setElementExpectations(attrClass, elementType, true);           
        moduleMock
            .fuzzy.openSetSkipTimes(mockFactory.expectsInstanceOf(attrClass));
View Full Code Here


    /**
     * Test for SkipTime response element
     */
    public void testSkipTimeElement() throws Exception {
        ElementType elementType = TickerResponseElements.SKIP_TIME;
        Class attrClass = SkipTimeAttributes.class;
           
        setElementExpectations(attrClass, elementType, true);           
        moduleMock
            .fuzzy.openSkipTime(mockFactory.expectsInstanceOf(attrClass));
View Full Code Here

    /**
     * Test for SetURL response element
     */
    public void testSetURLElement() throws Exception {
        ElementType elementType = TickerResponseElements.SET_URL;
        Class attrClass = SetURLAttributes.class;
           
        setElementExpectations(attrClass, elementType, true);           
        moduleMock
            .fuzzy.openSetURL(mockFactory.expectsInstanceOf(attrClass));
View Full Code Here

                    xdimeContext.getFlowControlManager();

            flowControlManager.handleStartElementEvent();
        } else {
            try {
                ElementType elementType = XDIME_2_ELEMENTS.getElementType(
                        namespaceURI, localName);

                // create the XDIME element
                XDIMEElement element =
                        handler.createXDIMEElement(elementType, xdimeContext);
View Full Code Here

        super.setUp();

        factoryMock = new ElementFactoryMock("factoryMock", expectations);

        ElementFactoryMapBuilder builder = new ElementFactoryMapBuilder();
        elementType = new ElementType("foo", "bar");
        builder.addMapping(elementType, factoryMock);
        ElementFactoryMap map = builder.buildFactoryMap();

        handler = new XDIMEElementHandler(map);
View Full Code Here

        }
    }

    public void testCreateXDIMEUnknownElement() {
        try {
            ElementType unknownElementType = new ElementType("unknown", "abc");
            handler.createXDIMEElement(unknownElementType, contextMock);
            fail("Handler should recognise that element is not supported");
        } catch (XDIMEException e) {
            // do nothing - correct behaviour
        }
View Full Code Here

        elements = XDIME2Elements.getDefaultInstance();
    }

    public void checkElementType(ElementType type) {
        ElementType languageType = elements.getElementType(
                type.getNamespaceURI(), type.getLocalName());
        assertSame(type, languageType);
    }
View Full Code Here

           
    // Javadoc inherited
    public boolean addSingletonElement(XDIMEElementInternal element) {
        Map map = getSingletonMap(true);
       
        ElementType type = element.getElementType();
       
        if (map.containsKey(type)) {
            return false;
        } else {
            map.put(element.getElementType(), element);
View Full Code Here

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

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.