Package com.volantis.xml.expression

Examples of com.volantis.xml.expression.ExpressionFactory


    // Javadoc inherited.
    protected Value execute(ExpressionContext expressionContext,
            DevicePolicyValueAccessor accessor,Value defaultValue) {
        Value value = null;
        ExpressionFactory factory = expressionContext.getFactory();

        // determine the size of the colour palette
        String palette = accessor.getDependentPolicyValue(
                DevicePolicyConstants.PALETTE);
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("Size of colour palette (from repository):" +
                    palette);
        }

        try {
            value = factory.createIntValue(Integer.parseInt(palette));
        } catch (NumberFormatException e) {
            // log it but continue
            LOGGER.info("function-bad-parameter-value",
                    new Object[] {palette, DevicePolicyConstants.PALETTE});
        }
View Full Code Here


            ExpressionContext expressionContext,
            DevicePolicyValueAccessor accessor, String name,
            Value defaultValue) {

        Value value = null;
        ExpressionFactory factory = expressionContext.getFactory();

        // resolution in mm = number of pixels on the screen divided by the
        // area of the screen in millimetres.
        String heightInPixels = accessor.getDependentPolicyValue(
                DevicePolicyConstants.ACTUAL_HEIGHT_IN_PIXELS);
View Full Code Here

                                    NAME,
                                    new Integer(2),
                                    new Integer(arguments.length)
                            }));
        }
        ExpressionFactory factory = context.getFactory();
        SimpleTimeValue first = (SimpleTimeValue)
                factory.createTimeValue(
                        arguments[0].stringValue().asJavaString());
        TimeValue second = factory.createTimeValue(
                arguments[1].stringValue().asJavaString());
        return first.subtract(second);
    }
View Full Code Here

                                    NAME,
                                    new Integer(2),
                                    new Integer(arguments.length)
                            }));
        }
        ExpressionFactory factory = context.getFactory();
        SimpleDateTimeValue first = (SimpleDateTimeValue)
                factory.createDateTimeValue(
                        arguments[0].stringValue().asJavaString());
        DateTimeValue second = factory.createDateTimeValue(
                arguments[1].stringValue().asJavaString());
        return first.subtract(second);
    }
View Full Code Here

                                    NAME,
                                    new Integer(2),
                                    new Integer(arguments.length)
                            }));
        }
        ExpressionFactory factory = context.getFactory();
        SimpleDateValue first = (SimpleDateValue)
                factory.createDateValue(
                        arguments[0].stringValue().asJavaString());
        DateValue second = factory.createDateValue(
                arguments[1].stringValue().asJavaString());
        return first.subtract(second);
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.expression.ExpressionFactory

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.