Package org.foray.fotree.value

Examples of org.foray.fotree.value.DtName


            prop = new DtString(getCurrentTokenValue());
            break;

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

        case TOK_FLOAT:
            final double floatValue = Double.parseDouble(
                    getCurrentTokenValue());
View Full Code Here


                final PropertyValue pv = collection.getItem(i);
                if (pv.canEvalKeyword()) {
                    final FoValue foValue = this.convertValueToFoValue(pv);
                    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();
View Full Code Here

     * @return The parsed, storable property value.
     * @throws PropertyException For an invalid property value.
     */
    private PropertyValue createPropertyValue(final FObj fobj,
            final String value) throws PropertyException {
        final DtName pv = DtName.makeNameDT(value);
        if (pv == null) {
            throw unexpectedValue(value, fobj, "Invalid NCName");
        }
        return pv;
    }
View Full Code Here

                if (innerValue.canEvalKeyword()) {
                    final FoValue foValue = this.convertValueToFoValue(
                            innerValue);
                    returnArray[i] = foValue.toXslFo();
                } else if (innerValue instanceof DtName) {
                    final DtName name = (DtName) innerValue;
                    returnArray[i] = name.getValue();
                } else {
                    throw this.unexpectedRetrieval();
                }
            }
        }
View Full Code Here

TOP

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

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.