Package org.foray.fotree.value

Examples of org.foray.fotree.value.DtString


            throws PropertyException {
        final PropertyParser parser = new PropertyParser(fobj, expr,
                propertyType);
        PropertyValue pv = parser.parseProperty();
        if (pv == null) {
            pv = new DtString(expr);
        }
        return pv;
    }
View Full Code Here


     */
    private PropertyValue parseProperty() throws PropertyException {
        next();
        if (getCurrentToken() == TOK_EOF) {
            // if prop value is empty string, force to StringProperty
            return new DtString("");
        }
        while (true) {
            final PropertyValue prop = parseAdditiveExpr();
            if (getCurrentToken() == TOK_EOF) {
                return prop;
View Full Code Here

            prop = parseInnerExpression();
            expectRpar();
            return prop;

        case TOK_LITERAL:
            prop = new DtString(getCurrentTokenValue());
            break;

        case TOK_NCNAME:
            // Interpret this in context of the property or do it later?
            prop = new DtName(getCurrentTokenValue());
View Full Code Here

                    returnArray[i] = foValue.toXslFo();
                } else if (pv instanceof DtName) {
                    final DtName dtName = (DtName) pv;
                    returnArray[i] = dtName.getValue();
                } else if (pv instanceof DtString) {
                    final DtString stringDT = (DtString) pv;
                    returnArray[i] = stringDT.getValue();
                } else {
                    throw this.unexpectedRetrieval();
                }
            }
            return returnArray;
View Full Code Here

        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (value.length() != 0) {
            return new DtString(value);
        }
        throw unexpectedValue(value, fobj);
    }
View Full Code Here

        pv = DtURI.makeUriDT(value);
        if (pv != null) {
            return pv;
        }
        if (value.length() != 0) {
            return new DtString(value);
        }
        throw unexpectedValue(value, fobj);
    }
View Full Code Here

     * @param attributeValue The unparsed property value.
     * @throws PropertyException For an invalid property value.
     */
    public AbstractString(final FObj fobj, final String propertyFullName,
            final String attributeValue) throws PropertyException {
        this.value = new DtString(attributeValue);
    }
View Full Code Here

TOP

Related Classes of org.foray.fotree.value.DtString

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.