Package org.eigenbase.util.property

Examples of org.eigenbase.util.property.Property


    /**
     * Returns the value of a property, or null if it is not set.
     */
    private static String getPropertyValue(String propertyName) {
        final Property property = PropertyInfo.lookupProperty(
            MondrianProperties.instance(),
            propertyName);
        return property.isSet()
            ? property.getString()
            : null;
    }
View Full Code Here


    public static void listProperty(String propertyName, StringBuilder buf) {
        buf.append(getPropertyValue(propertyName));
    }

    public static boolean isProperty(String propertyName) {
        final Property property = PropertyInfo.lookupProperty(
                MondrianProperties.instance(),
                propertyName);
        return property != null;
    }
View Full Code Here

                propertyName);
        return property != null;
    }

    public static boolean setProperty(String name, String value) {
        final Property property = PropertyInfo.lookupProperty(
                MondrianProperties.instance(),
                name);
        String oldValue = property.getString();
        if (! Util.equals(oldValue, value)) {
            property.setString(value);
            return true;
        } else {
            return false;
        }
    }
View Full Code Here

                    || !Property.class.isAssignableFrom(
                        field.getType()))
                {
                    continue;
                }
                final Property property;
                try {
                    property = (Property) field.get(properties);
                } catch (IllegalAccessException e) {
                    continue;
                }
View Full Code Here

    /**
     * Returns the value of a property, or null if it is not set.
     */
    private static String getPropertyValue(String propertyName) {
        final Property property = PropertyInfo.lookupProperty(
            MondrianProperties.instance(),
            propertyName);
        return property.isSet()
            ? property.getString()
            : null;
    }
View Full Code Here

    public static void listProperty(String propertyName, StringBuilder buf) {
        buf.append(getPropertyValue(propertyName));
    }

    public static boolean isProperty(String propertyName) {
        final Property property = PropertyInfo.lookupProperty(
            MondrianProperties.instance(),
            propertyName);
        return property != null;
    }
View Full Code Here

            propertyName);
        return property != null;
    }

    public static boolean setProperty(String name, String value) {
        final Property property = PropertyInfo.lookupProperty(
            MondrianProperties.instance(),
            name);
        String oldValue = property.getString();
        if (! Util.equals(oldValue, value)) {
            property.setString(value);
            return true;
        } else {
            return false;
        }
    }
View Full Code Here

                    || !Property.class.isAssignableFrom(
                        field.getType()))
                {
                    continue;
                }
                final Property property;
                try {
                    property = (Property) field.get(properties);
                } catch (IllegalAccessException e) {
                    continue;
                }
View Full Code Here

TOP

Related Classes of org.eigenbase.util.property.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.