Package org.foray.fotree.value

Examples of org.foray.fotree.value.PropertyValue.canEvalKeyword()


     * @throws PropertyException For an invalid property value.
     */
    private PropertyValue createPropertyValue(final FObj fobj,
            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (pv.canEvalNumeric()) {
            if (pv.getUnitPower() == Expr.UNIT_POWER_NUMERIC) {
                return pv;
View Full Code Here


     * @throws PropertyException For an invalid property value.
     */
    private PropertyValue createPropertyValue(final FObj fobj,
            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        throw unexpectedValue(value, fobj);
    }

View Full Code Here

     * @throws PropertyException For an invalid property value.
     */
    private PropertyValue createPropertyValue(final FObj fobj,
            final String value) throws PropertyException {
        final PropertyValue pv = this.standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }

        /* It is a series of 1-4 tokens. */
        final StringTokenizer st = new StringTokenizer(value);
View Full Code Here

     * @throws PropertyException For an invalid property value.
     */
    private PropertyValue createPropertyValue(final FObj fobj,
            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        throw unexpectedValue(value, fobj);
    }

View Full Code Here

            }
            throw unexpectedValue(value, fobj);
        }
        /* If the first item is a keyword, the other needs to be also. */
        if (pv.canEvalKeyword()) {
            if (! (pv2.canEvalKeyword())) {
                throw unexpectedValue(value, fobj);
            }
        }
        // The two keywords need to be from each of the two sets.
        final FoValue keyword = ((FoPropertyKeyword) pv).getValue();
View Full Code Here

                if (axis == AbsoluteAxis.VERTICAL) {
                    return Math.round((paddingRectangleDimension
                            - backgroundImageDimension) / 2);
                }
            }
            if (pv.canEvalKeyword()) {
                final FoValue keyword = this.convertValueToFoValue(pv);
                if (axis == AbsoluteAxis.HORIZONTAL
                        && keywordInSet(keyword,
                                PdBackgroundPositionVertical.VALID_KEYWORDS)) {
                    return Math.round((paddingRectangleDimension
View Full Code Here

     * @throws PropertyException For an invalid property value.
     */
    private PropertyValue createPropertyValue(final FObj fobj,
            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (pv instanceof DtAngle) {
            return pv;
        }
View Full Code Here

     * @throws PropertyException For an invalid property value.
     */
    private PropertyValue createPropertyValue(final FObj fobj,
            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (pv.canEvalNumeric()) {
            return pv;
        }
View Full Code Here

     * @throws PropertyException For an invalid property value.
     */
    private PropertyValue createPropertyValue(final FObj fobj,
            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (pv.canEvalPercentage()) {
            return pv;
        }
View Full Code Here

     * @throws PropertyException For an invalid property value.
     */
    private PropertyValue createPropertyValue(final FObj fobj,
            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (pv.canEvalPercentage()) {
            return pv;
        }
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.