Examples of accept()


Examples of org.apache.jackrabbit.spi.commons.query.qom.ConstraintImpl.accept()

            node.getSource().accept(this, data);

            ConstraintImpl constraint = node.getConstraint();
            Object newConstraint = null;
            if (constraint != null) {
                newConstraint = constraint.accept(this, data);
            }
            OrderingImpl[] orderings = node.getOrderings();
            Object[] newOrderingObjects = new Object[orderings.length];
            for (int i = 0; i < orderings.length; i++) {
                newOrderingObjects[i] = orderings[i].accept(this, data);
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.query.qom.DynamicOperandImpl.accept()

            DynamicOperandImpl op1 = (DynamicOperandImpl) node.getOperand1();
            Operator operator = node.getOperatorInstance();
            StaticOperandImpl op2 = ((StaticOperandImpl) node.getOperand2());
            Value staticValue = (Value) op2.accept(this, null);

            DynamicOperand dynOp = (DynamicOperand) op1.accept(this, staticValue);
            SelectorImpl selector = getSelector(op1.getSelectorQName());
            if (operator == Operator.LIKE) {
                return new LikeConstraint(dynOp, staticValue, selector);
            } else {
                return new ComparisonConstraint(
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.query.qom.PropertyValueImpl.accept()

            } catch (ValueFormatException e) {
                throw new InvalidQueryException("Static value " +
                        staticValue.toString() + " cannot be converted to a Long");
            }
            PropertyValueImpl propValue = (PropertyValueImpl) node.getPropertyValue();
            return new LengthOperand((PropertyValueOperand) propValue.accept(this, null));
        }

        public Object visit(LiteralImpl node, Object data) throws Exception {
            return node.getLiteralValue();
        }
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.query.qom.StaticOperandImpl.accept()

        public Object visit(ComparisonImpl node, Object data) throws Exception {
            DynamicOperandImpl op1 = (DynamicOperandImpl) node.getOperand1();
            Operator operator = node.getOperatorInstance();
            StaticOperandImpl op2 = ((StaticOperandImpl) node.getOperand2());
            Value staticValue = (Value) op2.accept(this, null);

            DynamicOperand dynOp = (DynamicOperand) op1.accept(this, staticValue);
            SelectorImpl selector = getSelector(op1.getSelectorQName());
            if (operator == Operator.LIKE) {
                return new LikeConstraint(dynOp, staticValue, selector);
View Full Code Here

Examples of org.apache.lucene.index.IndexFileNameFilter.accept()

    IndexFileNameFilter filter = IndexFileNameFilter.getFilter();

    byte[] buf = new byte[BufferedIndexOutput.BUFFER_SIZE];
    for (int i = 0; i < files.length; i++) {

      if (!filter.accept(null, files[i]))
        continue;

      IndexOutput os = null;
      IndexInput is = null;
      try {
View Full Code Here

Examples of org.apache.maven.shared.dependency.graph.DependencyNode.accept()

    final DependencyNode projectNode = dependencyGraphBuilder.buildDependencyGraph(project, filter);
    assert projectNode != null;

    final CollectingDependencyNodeVisitor visitor = new CollectingDependencyNodeVisitor();
    projectNode.accept(visitor);

    final Collection<? extends DependencyNode> nodes = visitor.getNodes();
    if (nodes != null && !nodes.isEmpty()) {
      final Artifact projectArtifact = project.getArtifact();
View Full Code Here

Examples of org.apache.maven.shared.dependency.tree.DependencyNode.accept()

            public boolean include(Artifact artifact) {
                return true;
            }
              
           }, collector);
           tree.accept(new DependencyNodeVisitor() {
                public boolean endVisit(DependencyNode node) {
                    // we want the next sibling too
                    return true;
                }
                public boolean visit(DependencyNode node) {
View Full Code Here

Examples of org.apache.maven.surefire.SpecificTestClassFilter.accept()

        for ( String className : testClassNames )
        {
            Class testClass = loadClass( classLoader, className );

            if ( !specificTestFilter.accept( testClass ) )
            {
                // FIXME: Log this somehow!
                continue;
            }
View Full Code Here

Examples of org.apache.maven.surefire.common.junit4.JUnit4TestChecker.accept()

        // in particular org.junit.runner.RunWith can't be loaded
        Set<String> visiblePackages = Collections.singleton( "org.junit" );
        PackageFilteringClassLoader filteringTestClassloader =
            new PackageFilteringClassLoader( testClassLoader, visiblePackages );
        JUnit4TestChecker checker = new JUnit4TestChecker( filteringTestClassloader );
        assertTrue( checker.accept( testClass ) );
    }

    public static class AlsoValid
        extends TestCase
    {
View Full Code Here

Examples of org.apache.olingo.odata2.api.uri.expression.FilterExpression.accept()

    public SearchCondition<T> parse(String searchExpression) throws SearchParseException {
        try {
            final T condition = conditionClass.newInstance();
            final FilterExpression expression = parser.parseFilterString(searchExpression);
            final FilterExpressionVisitor visitor = new FilterExpressionVisitor(condition);           
            return (SearchCondition< T >)expression.accept(visitor);           
        } catch (ODataMessageException ex) {
            throw new SearchParseException(ex);
        } catch (ODataApplicationException ex) {
            throw new SearchParseException(ex);
        } catch (InstantiationException ex) {
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.