Package org.pentaho.reporting.engine.classic.core.testsupport.selector

Examples of org.pentaho.reporting.engine.classic.core.testsupport.selector.AndMatcher


    //ModelPrinter.print(logicalPageBox);

    final NodeMatcher matcher = new ChildMatcher(new ElementMatcher("TableCellRenderBox"));
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, matcher);

    final NodeMatcher childMatcher = new AndMatcher(new ElementMatcher("ParagraphRenderBox"), new AttributeMatcher("value"));
    assertEquals(6, all.length);
    for (final RenderNode renderNode : all)
    {
      final RenderNode node = MatchFactory.match(renderNode, childMatcher);
      assertNotNull(node);
View Full Code Here


  private RenderNode findTextFieldsWithField(String field, RenderNode itemBand)
  {
    final ElementTypeMatcher typeMatcher = new ElementTypeMatcher(TextFieldType.INSTANCE.getMetaData().getName());
    final AttributeMatcher attributeMatcher = new AttributeMatcher(AttributeNames.Core.NAMESPACE, AttributeNames.Core.FIELD, field);
    final AndMatcher m = new AndMatcher(typeMatcher, attributeMatcher);
    return MatchFactory.match(itemBand, m);
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.testsupport.selector.AndMatcher

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.