Package org.foray.fotree

Examples of org.foray.fotree.PropertyException


     * integer.
     */
    public void setWithinColumn(final PropertyValue newWithinColumn)
            throws PropertyException {
        if (! newWithinColumn.canEvalInteger()) {
            throw new PropertyException("keep.within-column must evaluate to "
                    + "an integer.");
        }
        this.withinColumn = newWithinColumn;
    }
View Full Code Here


     * integer.
     */
    public void setWithinPage(final PropertyValue newWithinPage)
            throws PropertyException {
        if (! newWithinPage.canEvalInteger()) {
            throw new PropertyException("keep.within-column must evaluate to "
                    + "an integer.");
        }
        this.withinPage = newWithinPage;
    }
View Full Code Here

     * @throws PropertyException If the input value is not a valid length.
     */
    public void setLengthMinimum(final PropertyValue lengthMinimum)
            throws PropertyException {
        if (! lengthMinimum.canEvalLength()) {
            throw new PropertyException("Invalid length for minimum in "
                    + this.getClass().getName());
        }
        this.lengthMinimum = lengthMinimum;
    }
View Full Code Here

     * @throws PropertyException If the input value is not a valid length.
     */
    public void setLengthOptimum(final PropertyValue lengthOptimum)
            throws PropertyException {
        if (! lengthOptimum.canEvalLength()) {
            throw new PropertyException("Invalid length for optimum in "
                    + this.getClass().getName());
        }
        this.lengthOptimum = lengthOptimum;
    }
View Full Code Here

     * @throws PropertyException If the input value is not a valid length.
     */
    public void setLengthMaximum(final PropertyValue lengthMaximum)
            throws PropertyException {
        if (! lengthMaximum.canEvalLength()) {
            throw new PropertyException("Invalid length for maximum in "
                    + this.getClass().getName());
        }
        this.lengthMaximum = lengthMaximum;
    }
View Full Code Here

        if (FoValue.DISCARD == conditionality) {
            this.conditionality = Conditionality.DISCARD;
        } else if (FoValue.RETAIN == conditionality) {
            this.conditionality = Conditionality.RETAIN;
        } else {
            throw new PropertyException("Invalid conditionality: "
                    + conditionality.toXslFo());
        }
    }
View Full Code Here

     * @throws PropertyException If the new precedence value is not Numeric.
     */
    public void setPrecedence(final PropertyValue precedence)
            throws PropertyException {
        if (! precedence.canEvalNumeric()) {
            throw new PropertyException("Invalid Numeric for precedence in "
                    + this.getClass().getName());
        }
        this.precedence = precedence;
    }
View Full Code Here

                return true;
            } else if (subPropertyName.equals("maximum")) {
                this.setLengthMaximum(length);
                return true;
            } else {
                throw new PropertyException("Invalid 'space' component: "
                        + subPropertyName);
            }
        }
        return false;
    }
View Full Code Here

            return true;
        } else if ("maximum".equals(subPropertyName)) {
            this.setLengthMaximum(value);
            return true;
        } else {
            throw new PropertyException("Invalid 'space' component: "
                    + subPropertyName);
        }
    }
View Full Code Here

         * been converted to reals. */
        final double colorVal = numeric.evalNumeric()
                / WKConstants.MAX_8_BIT_UNSIGNED_INT;
        if (colorVal < 0.0
                || colorVal > WKConstants.MAX_8_BIT_UNSIGNED_INT) {
            throw new PropertyException("Arguments to rgb() must normalize "
                    + "to the range 0 to 1");
        }
    }
View Full Code Here

TOP

Related Classes of org.foray.fotree.PropertyException

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.