Examples of canEvalKeyword()


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 = this.standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }

        /* There should be one or more border-width instances. If there is only
         * one, it will not be returned above as a valid property value, because
View Full Code Here

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

                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();
            switch (keywordValue) {
            case THIN: {
                return DtBorderWidth.BORDER_WIDTH_THIN;
View Full Code Here

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

    private PdBorderSeparation createPropertyValue(final FObj fobj,
            final String value) throws PropertyException {
        /* BorderSpacing is a shorthand for BorderSeparation, so we will create
         * 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,
View Full Code Here

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()) {
            return pv;
        }
View Full Code Here

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()) {
            return pv;
        }
View Full Code Here

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;
        }
        final DtCountry dtCountry = DtCountry.makeCountryDT(value);
        if (dtCountry != null
                && dtCountry.getValue() != Country.NULL) {
View Full Code Here

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.canEvalPercentage()) {
            return pv;
        }
View Full Code Here

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.canEvalInteger()) {
            return pv;
        }
View Full Code Here

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.canEvalPercentage()) {
            return pv;
        }
View Full Code Here

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.canEvalLength()) {
            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.