Package com.volantis.xml.expression.atomic.numeric

Examples of com.volantis.xml.expression.atomic.numeric.SimpleDoubleValue


        return new SimpleStringValue(this, value);
    }

    // javadoc inherited
    public DoubleValue createDoubleValue(double value) {
        return new SimpleDoubleValue(this, value);
    }
View Full Code Here


                        DevicePolicyConstants.ACTUAL_HEIGHT_IN_PIXELS,
                        DevicePolicyConstants.ACTUAL_HEIGHT_IN_MM);
                usableHeight = convertLengthFromMm(usableHeightInMm, name);
            }

            actualValue = new SimpleDoubleValue(expressionContext.getFactory(),
                    usableHeight);
        } catch (NumberFormatException e) {
            actualValue = null;
        }
View Full Code Here

                        accessor, DevicePolicyConstants.USABLE_WIDTH_IN_PIXELS,
                        DevicePolicyConstants.ACTUAL_WIDTH_IN_PIXELS,
                        DevicePolicyConstants.ACTUAL_WIDTH_IN_MM);
                usableWidth = convertLengthFromMm(usableWidthInMm, name);
            }
            actualValue = new SimpleDoubleValue(expressionContext.getFactory(),
                    usableWidth);
        } catch (NumberFormatException e) {
            actualValue = null;
        }
       
View Full Code Here

        } else {
            deviceWidth = retrieveLengthValue(accessor,
                DevicePolicyConstants.ACTUAL_WIDTH_IN_MM, name);
        }

        DoubleValue actualValue = new SimpleDoubleValue(
                expressionContext.getFactory(), deviceWidth);

        return calculateLength(expressionContext, accessor, name, defaultValue,
                actualValue);
    }
View Full Code Here

        } else {
            deviceHeight = retrieveLengthValue(accessor,
                DevicePolicyConstants.ACTUAL_HEIGHT_IN_MM, name);
        }

        DoubleValue actualValue = new SimpleDoubleValue(
                expressionContext.getFactory(), deviceHeight);

        return calculateLength(expressionContext, accessor, name, defaultValue,
                actualValue);
    }
View Full Code Here

                        Double.parseDouble(heightInMillimetres);

                double resolution = totalPixels /
                        convertAreaFromMmSquared(areaInMm, name);

                value = new SimpleDoubleValue(factory, resolution);

                if (LOGGER.isDebugEnabled()) {
                    LOGGER.debug("Resolution calculated from repository " +
                            "values is : " + resolution + " in " + name);
                }
View Full Code Here

TOP

Related Classes of com.volantis.xml.expression.atomic.numeric.SimpleDoubleValue

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.