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;
        }
        throw unexpectedValue(value, fobj);
    }

View Full Code Here


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

        /* Tokenize the value and loop through the tokens, adjusting the
         * TextDecoDT instance accordingly.
View Full Code Here

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

     */
    private PropertyValue parseToken(final FObj fobj, final String token)
            throws PropertyException {
        final PropertyValue pv = this.standardParse(fobj, token,
                AbstractAllowedAxisScale.VALID_TOKEN_KEYWORDS);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (pv.canEvalPercentage()) {
            return pv;
        }
View Full Code Here

        }
        final ValueCollection collection = (ValueCollection) this.value;
        final float[] returnValue = new float[collection.getCount()];
        for (int i = 0; i < collection.getCount(); i++) {
            final PropertyValue pv = collection.getItem(i);
            if (pv.canEvalKeyword()) {
                returnValue[i] = java.lang.Float.POSITIVE_INFINITY;
            } else if (pv.canEvalPercentage()) {
                returnValue[i] = pv.evalPercentage();
            }
        }
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()) {
            if (pv.evalPercentage() < 0) {
                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 = 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 = 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.