Package org.foray.fotree

Examples of org.foray.fotree.PropertyException


     * @throws PropertyException If either operand is null.
     */
    private ExprMultiplicativeOper evalMultiply(final ExprMultiplicative op1,
            final ExprUnary op2) throws PropertyException {
        if (op1 == null || op2 == null) {
            throw new PropertyException("Missing parameter: multiplication.");
        }
        return new ExprMultiplicativeOper(op1, op2,
                Expr.OPERATION_MULTIPLY);
    }
View Full Code Here


     * @throws PropertyException If either operand is null.
     */
    private ExprMultiplicativeOper evalDivide(final ExprMultiplicative op1,
            final ExprUnary op2) throws PropertyException {
        if (op1 == null || op2 == null) {
            throw new PropertyException("Missing parameter: division.");
        }
        return new ExprMultiplicativeOper(op1, op2,
                Expr.OPERATION_DIVIDE);
    }
View Full Code Here

     * @throws PropertyException If either operand is null.
     */
    private ExprMultiplicativeOper evalModulo(final ExprMultiplicative op1,
            final ExprUnary op2) throws PropertyException {
        if (op1 == null || op2 == null) {
            throw new PropertyException("Missing parameter: modulo.");
        }
        return new ExprMultiplicativeOper(op1, op2,
                Expr.OPERATION_MOD);
    }
View Full Code Here

     */
    public DtBorderWidth(final PropertyValue value) throws PropertyException {
        if (DtBorderWidth.isBorderWidth(value)) {
            this.value = value;
        } else {
            throw new PropertyException("Invalid border-width value.");
        }
    }
View Full Code Here

                enumeration, propertyFullName, attributeValue);
        if (property != null) {
            return property;
        }
        if (enumeration == null) {
            throw new PropertyException("Invalid property for fo namespace: "
                    + propertyFullName);
        }
        switch (enumeration) {
        case ABSOLUTE_POSITION: {
            return new PdAbsolutePosition(fobj, propertyFullName,
View Full Code Here

            throws PropertyException {
        if (propertyValue instanceof DtLengthBPIPDirection
                || this.isKeywordInherit(propertyValue)) {
            this.value = propertyValue;
        }
        throw new PropertyException("Invalid property value for "
                + "BorderSeparation");
    }
View Full Code Here

                enumeration, propertyFullName, attributeValue);
        if (property != null) {
            return property;
        }
        if (enumeration == null) {
            throw new PropertyException("Invalid property for axsl namespace: "
                    + propertyFullName);
        }
        switch (enumeration) {
        case METADATA_KEY: {
            return new MetadataKey(fobj, propertyFullName,
View Full Code Here

     * @throws PropertyException For invalid parameters.
     */
    public DtLengthBPIPDirection(final PropertyValue bpdLength,
            final PropertyValue ipdLength) throws PropertyException {
        if (! bpdLength.canEvalLength()) {
            throw new PropertyException("BPD must evaluate to a length.");
        }
        if (! ipdLength.canEvalLength()) {
            throw new PropertyException("IPD must evaluate to a length.");
        }
        this.bpdLength = bpdLength;
        this.ipdLength = ipdLength;
    }
View Full Code Here

     * length.
     */
    public void setBPDLength(final PropertyValue length)
            throws PropertyException {
        if (! this.bpdLength.canEvalLength()) {
            throw new PropertyException("BPD must evaluate to a length.");
        }
        this.bpdLength = length;
    }
View Full Code Here

     * length.
     */
    public void setIPDLength(final PropertyValue length)
            throws PropertyException {
        if (! this.ipdLength.canEvalLength()) {
            throw new PropertyException("IPD must evaluate to a length.");
        }
        this.ipdLength = length;
    }
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.