Package com.volantis.styling.impl.engine.matchers

Examples of com.volantis.styling.impl.engine.matchers.MatcherResult


                // =====================================================================
                //   Test Expectations
                // =====================================================================

                Matcher matcher = new NthChildMatcher(a, b);
                MatcherResult actual = matcher.matches(matcherContextMock);
                assertEquals("Wrong result for position " + p +
                             " within sequence " + sequence + " with " +
                             a + "n + " + b,
                             sequence.expectedResult, actual);
            }
View Full Code Here


    public StylerResult style(StylerContext context) {

        // Check to see whether the matcher matches the current element.
        MatcherContext matcherContext =
                context.getMatcherContext();
        MatcherResult result = matcher.matches(matcherContext);
        StylerResult stylerResult;
        if (result == MatcherResult.MATCHED) {
            // The matcher matched so merge the styles in.
            delta.applyTo(context);
            stylerResult = StylerResult.STYLED;
View Full Code Here

    private void checkNamespaceMapping(
            final MatcherContextMock contextMock, final String namespacePrefix,
            final String namespaceURI) {
        contextMock.expects.getNamespace().returns(namespaceURI);
        Matcher matcher = factory.createNamespaceMatcher(namespacePrefix);
        MatcherResult result = matcher.matches(contextMock);
        assertEquals(MatcherResult.MATCHED, result);
    }
View Full Code Here

TOP

Related Classes of com.volantis.styling.impl.engine.matchers.MatcherResult

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.