Package org.apache.jackrabbit.spi.commons.query.qom

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


            return node.getLiteralValue();
        }

        public Object visit(LowerCaseImpl node, Object data) throws Exception {
            DynamicOperandImpl operand = (DynamicOperandImpl) node.getOperand();
            return new LowerCaseOperand((DynamicOperand) operand.accept(this, null));
        }

        public Object visit(NodeLocalNameImpl node, Object data) throws Exception {
            return new NodeLocalNameOperand();
        }
View Full Code Here

            return null;
        }

        public Object visit(UpperCaseImpl node, Object data) throws Exception {
            DynamicOperandImpl operand = (DynamicOperandImpl) node.getOperand();
            return new UpperCaseOperand((DynamicOperand) operand.accept(this, null));
        }

        private SelectorImpl getSelector(Name name) {
            if (name == null) {
                // assume default selector
View Full Code Here

            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

            return node.getLiteralValue();
        }

        public Object visit(LowerCaseImpl node, Object data) throws Exception {
            DynamicOperandImpl operand = (DynamicOperandImpl) node.getOperand();
            return new LowerCaseOperand((DynamicOperand) operand.accept(this, data));
        }

        public Object visit(NodeLocalNameImpl node, Object data) throws Exception {
            return new NodeLocalNameOperand();
        }
View Full Code Here

                    getSelector(node.getSelectorQName()));
        }

        public Object visit(UpperCaseImpl node, Object data) throws Exception {
            DynamicOperandImpl operand = (DynamicOperandImpl) node.getOperand();
            return new UpperCaseOperand((DynamicOperand) operand.accept(this, data));
        }

        private SelectorImpl getSelector(Name name) {
            for (SelectorImpl selector : selectors) {
                if (selector.getSelectorQName().equals(name)) {
View Full Code Here

            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

            return node.getLiteralValue();
        }

        public Object visit(LowerCaseImpl node, Object data) throws Exception {
            DynamicOperandImpl operand = (DynamicOperandImpl) node.getOperand();
            return new LowerCaseOperand((DynamicOperand) operand.accept(this, data));
        }

        public Object visit(NodeLocalNameImpl node, Object data) throws Exception {
            return new NodeLocalNameOperand();
        }
View Full Code Here

                    getSelector(node.getSelectorQName()));
        }

        public Object visit(UpperCaseImpl node, Object data) throws Exception {
            DynamicOperandImpl operand = (DynamicOperandImpl) node.getOperand();
            return new UpperCaseOperand((DynamicOperand) operand.accept(this, data));
        }

        private SelectorImpl getSelector(Name name) {
            for (SelectorImpl selector : selectors) {
                if (selector.getSelectorQName().equals(name)) {
View Full Code Here

            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

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.