Package org.foray.fotree.xml.prop

Examples of org.foray.fotree.xml.prop.Lang


            throw new PropertyException("Invalid property for xml namespace: "
                    + propertyFullName);
        }
        switch (enumeration) {
        case LANG: {
            return new Lang(fobj, propertyFullName, attributeValue);
        }
        default: {
            return null;
        }
        }
View Full Code Here


    public String getLanguage(final FObj fobj, final FoContext context) {
        PdLanguage property = (PdLanguage) getProperty(FoProperty.LANGUAGE);
        if (property != null) {
            return property.getValue(context, fobj);
        }
        final Lang langProperty = (Lang) getProperty(XmlProperty.LANG);
        if (langProperty != null) {
            property = langProperty.getLanguage();
            if (property != null) {
                return property.getValue(context, fobj);
            }
        }
        return PdLanguage.getValueNoInstance(context, fobj);
View Full Code Here

        if (property != null) {
            return property.getValue(context, fobj);
        }

        /* Try the xml:lang shorthand. */
        final Lang langProperty = (Lang) getProperty(XmlProperty.LANG);
        if (langProperty != null) {
            property = langProperty.getCountry();
            if (property != null) {
                return property.getValue(context, fobj);
            }
        }
        return PdCountry.getValueNoInstance(context, fobj);
View Full Code Here

TOP

Related Classes of org.foray.fotree.xml.prop.Lang

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.