Package org.foray.fotree

Examples of org.foray.fotree.Property


            throws PropertyException {
        final String basePropertyName = Property.getBasePropertyName(
                propertyFullName);
        final XmlProperty enumeration = enumeratePropertyName(
                basePropertyName);
        final Property property = checkCompoundProperty(fobj,
                enumeration, propertyFullName, attributeValue);
        if (property != null) {
            return property;
        }
        if (enumeration == null) {
View Full Code Here


     */
    public Property parseAttributeForNS(final Attributes attributes,
            final String attributeName, final String attributeValue,
            final FObj fobj, final Locator locator)
            throws PropertyException {
        final Property property = PropertyMakerXML.makeProperty(attributeName,
                attributeValue, fobj);
        return property;
    }
View Full Code Here

     */
    public PropertyValue eval(final Property callingProperty, final FObj fobj) {
        /* TODO: Provide the right context. */
        FObj parent = fobj.effectiveParent(null);
        final FoProperty propertyType = this.getPropertyType();
        Property ps = null;
        while (parent != null && ps == null) {
            ps = parent.getPropertyList().getProperty(propertyType);
            /* TODO: Provide the right context. */
            parent = fobj.effectiveParent(null);
        }
        if (ps == null) {
            return null;
        }
        return ps.value();
    }
View Full Code Here

            collection.addItem(borderColor);
            return collection;
        }
        final StringTokenizer st = new StringTokenizer(value);
        while (st.hasMoreTokens()) {
            final Property property = parseToken(fobj, st.nextToken());
            if (property == null) {
                throw unexpectedValue(value, fobj);
            }
            if (collection == null) {
                collection = new PropertyCollection();
View Full Code Here

    public AbstractBorderStyle getBorderStyle() {
        if (! (value() instanceof PropertyCollection)) {
            return null;
        }
        final PropertyCollection collection = (PropertyCollection) value();
        final Property property = collection.findProperty(
                FoProperty.BORDER_STYLE);
        if (property instanceof AbstractBorderStyle) {
            return (AbstractBorderStyle) property;
        }
        return null;
View Full Code Here

    public AbstractBorderWidth getBorderWidth() {
        if (! (value() instanceof PropertyCollection)) {
            return null;
        }
        final PropertyCollection collection = (PropertyCollection) value();
        final Property property = collection.findProperty(
                FoProperty.BORDER_WIDTH);
        if (property instanceof AbstractBorderWidth) {
            return (AbstractBorderWidth) property;
        }
        return null;
View Full Code Here

    public AbstractBorderColor getBorderColor() {
        if (! (value() instanceof PropertyCollection)) {
            return null;
        }
        final PropertyCollection collection = (PropertyCollection) value();
        final Property property = collection.findProperty(
                FoProperty.BORDER_COLOR);
        if (property instanceof AbstractBorderColor) {
            return (AbstractBorderColor) property;
        }
        return null;
View Full Code Here

        if (st.countTokens() < 1 || st.countTokens() > 2) {
            throw unexpectedValue(value, fobj);
        }
        while (st.hasMoreTokens()) {
            PropertyValue insideValue = null;
            Property insideProperty = null;
            insideValue = DtTime.makeTimeDT(value);
            if (insideValue == null) {
                insideValue = DtPercentage.makePercentageDT(value);
            }
            if (insideValue == null) {
View Full Code Here

                    index = 1;
                } else {
                    index = 0;
                }
            }
            final Property property = collection.getItem(index);
            final PropertyValue pv = property.value();
            final DtLength length = (DtLength) pv;
            return length.getValue(fobj.traitFontSize(context));
        }
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
View Full Code Here

            final String attributeValue, final FObj fobj)
            throws PropertyException {
        final String basePropertyName = Property.getBasePropertyName(
                propertyFullName);
        final FoProperty enumeration = enumeratePropertyName(basePropertyName);
        final Property property = checkCompoundProperty(fobj,
                enumeration, propertyFullName, attributeValue);
        if (property != null) {
            return property;
        }
        if (enumeration == null) {
View Full Code Here

TOP

Related Classes of org.foray.fotree.Property

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.