Examples of canEvalLength()


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

            return pv;
        }
        if (pv.canEvalPercentage()) {
            return pv;
        }
        if (pv.canEvalLength()) {
            return pv;
        }
        throw unexpectedValue(value, fobj);
    }
View Full Code Here

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

            final RelativeCompass direction, final FObj fobj) {
        final ValueCollection collection = (ValueCollection) value();
        final int whichElement = PropertyCollection.whichElementForDirectional(
                direction, collection.getCount());
        final PropertyValue value = collection.getItem(whichElement);
        if (value.canEvalLength()) {
            return this.convertValueToLength(value, fobj, context);
        }
        if (value.canEvalKeyword()) {
            final FoPropertyKeyword keyword = (FoPropertyKeyword) value;
            final FoValue keywordValue = keyword.getValue();
View Full Code Here

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

         * and wrap an actual BorderSeparation instance. */
        final PropertyValue pv = this.standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return new PdBorderSeparation(pv);
        }
        if (pv.canEvalLength()) {
            /* There is only one length. */
            final DtLengthBPIPDirection bpip = new DtLengthBPIPDirection(pv,
                    pv);
            return new PdBorderSeparation(bpip);
        }
View Full Code Here

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

        }

        final PropertyValue token1 = standardParse(fobj, st.nextToken());
        final PropertyValue token2 = standardParse(fobj, st.nextToken());
        if (token1.canEvalLength()
                && token2.canEvalLength()) {
            final DtLengthBPIPDirection bpip = new DtLengthBPIPDirection(token1,
                    token2);
            return new PdBorderSeparation(bpip);
        }
        throw unexpectedValue(value, fobj);
View Full Code Here

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

            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalPercentage()) {
            return pv;
        }
        if (pv.canEvalLength()) {
            return pv;
        }
        if (pv instanceof FnProportionalColWidth) {
            // Used to store proportional column width
            return pv;
View Full Code Here

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

            return pv;
        }
        if (pv.canEvalPercentage()) {
            return pv;
        }
        if (pv.canEvalLength()) {
            return pv;
        }
        throw unexpectedValue(value, fobj);
    }
View Full Code Here

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

            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (pv.canEvalLength()) {
            return pv;
        }
        throw unexpectedValue(value, fobj);
    }
View Full Code Here

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

            throws PropertyException {
        final PropertyValue pv = this.standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (pv.canEvalLength()) {
            /* Wrap it inside the compound data type intended for this
             * purpose.*/
            final DtLengthBPIPDirection bpip = new DtLengthBPIPDirection(
                    DtLength.ZERO_LENGTH, DtLength.ZERO_LENGTH);
            if ("block-progression-direction".equals(subPropertyName)) {
View Full Code Here

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

        final DtLengthBPIPDirection lengthDirection =
                (DtLengthBPIPDirection) value();

        /* Parse the attribute. */
        final PropertyValue pv = standardParse(fobj, attributeValue);
        if (pv.canEvalLength()) {
            final String subPropertyName = Property.getSubPropertyName(
                    propertyFullName);
            if ("block-progression-direction".equals(subPropertyName)) {
                lengthDirection.setBPDLength(pv);
                return true;
View Full Code Here

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

            return pv;
        }
        if (pv.canEvalPercentage()) {
            return pv;
        }
        if (pv.canEvalLength()) {
            return pv;
        }
        throw unexpectedValue(value, fobj);
    }
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.