Examples of DefaultQueryNodeVisitor


Examples of org.apache.jackrabbit.spi.commons.query.DefaultQueryNodeVisitor

        // traverse
        node.childrenAccept(this, rqn);

        // check if string transformation is valid
        try {
            rqn.acceptOperands(new DefaultQueryNodeVisitor() {
                public Object visit(PropertyFunctionQueryNode node, Object data) {
                    String functionName = node.getFunctionName();
                    if ((functionName.equals(PropertyFunctionQueryNode.LOWER_CASE)
                            || functionName.equals(PropertyFunctionQueryNode.UPPER_CASE))
                                && rqn.getValueType() != QueryConstants.TYPE_STRING) {
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.query.DefaultQueryNodeVisitor

        StringBuffer sb = (StringBuffer) data;
        if (node.getIncludeDescendants()) {
            sb.append('/');
        }
        final Name[] nodeType = new Name[1];
        node.acceptOperands(new DefaultQueryNodeVisitor() {
            public Object visit(NodeTypeQueryNode node, Object data) {
                nodeType[0] = node.getValue();
                return data;
            }
        }, null);
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.query.DefaultQueryNodeVisitor

                        + node.getValueType());
        }

        // get property transformation
        final int[] transform = new int[]{TransformConstants.TRANSFORM_NONE};
        node.acceptOperands(new DefaultQueryNodeVisitor() {
            public Object visit(PropertyFunctionQueryNode node, Object data) {
                if (node.getFunctionName().equals(PropertyFunctionQueryNode.LOWER_CASE)) {
                    transform[0] = TransformConstants.TRANSFORM_LOWER_CASE;
                } else if (node.getFunctionName().equals(PropertyFunctionQueryNode.UPPER_CASE)) {
                    transform[0] = TransformConstants.TRANSFORM_UPPER_CASE;
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.DefaultQueryNodeVisitor

         return data;
      }

      // get property transformation
      final int[] transform = new int[]{TransformConstants.TRANSFORM_NONE};
      node.acceptOperands(new DefaultQueryNodeVisitor()
      {
         @Override
         public Object visit(PropertyFunctionQueryNode node, Object data)
         {
            if (node.getFunctionName().equals(PropertyFunctionQueryNode.LOWER_CASE))
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.DefaultQueryNodeVisitor

        // traverse
        node.childrenAccept(this, rqn);

        // check if string transformation is valid
        try {
            rqn.acceptOperands(new DefaultQueryNodeVisitor() {
                public Object visit(PropertyFunctionQueryNode node, Object data) {
                    String functionName = node.getFunctionName();
                    if ((functionName.equals(PropertyFunctionQueryNode.LOWER_CASE)
                            || functionName.equals(PropertyFunctionQueryNode.UPPER_CASE))
                                && rqn.getValueType() != QueryConstants.TYPE_STRING) {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.DefaultQueryNodeVisitor

      if (node.getIncludeDescendants())
      {
         sb.append('/');
      }
      final InternalQName[] nodeType = new InternalQName[1];
      node.acceptOperands(new DefaultQueryNodeVisitor()
      {
         public Object visit(NodeTypeQueryNode node, Object data)
         {
            nodeType[0] = node.getValue();
            return data;
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.DefaultQueryNodeVisitor

      // traverse
      node.childrenAccept(this, rqn);

      // check if string transformation is valid
      rqn.acceptOperands(new DefaultQueryNodeVisitor()
      {
         public Object visit(PropertyFunctionQueryNode node, Object data)
         {
            String functionName = node.getFunctionName();
            if ((functionName.equals(PropertyFunctionQueryNode.LOWER_CASE) || functionName
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.DefaultQueryNodeVisitor

      }

      // get property transformation
      final int[] transform = new int[]
      {TransformConstants.TRANSFORM_NONE};
      node.acceptOperands(new DefaultQueryNodeVisitor()
      {
         public Object visit(PropertyFunctionQueryNode node, Object data)
         {
            if (node.getFunctionName().equals(PropertyFunctionQueryNode.LOWER_CASE))
            {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.DefaultQueryNodeVisitor

      if (selectProps.size() == 0)
      {
         // use node type constraint
         LocationStepQueryNode[] steps = root.getLocationNode().getPathSteps();
         final InternalQName[] ntName = new InternalQName[1];
         steps[steps.length - 1].acceptOperands(new DefaultQueryNodeVisitor()
         {

            public Object visit(AndQueryNode node, Object data)
            {
               return node.acceptOperands(this, data);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.DefaultQueryNodeVisitor

      return data;
  }

  // get property transformation
  final int[] transform = new int[] { TransformConstants.TRANSFORM_NONE };
  node.acceptOperands(new DefaultQueryNodeVisitor() {
      public Object visit(PropertyFunctionQueryNode node, Object data) {
    if (node.getFunctionName().equals(
      PropertyFunctionQueryNode.LOWER_CASE)) {
        transform[0] = TransformConstants.TRANSFORM_LOWER_CASE;
    } else if (node.getFunctionName().equals(
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.