Package com.volantis.mcs.dom2theme.impl.optimizer

Examples of com.volantis.mcs.dom2theme.impl.optimizer.PropertyClearerCheckerImpl


        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInherited(true);

        final PropertyValues parentValues = createOtherParentValues();
        final PropertyClearerCheckerImpl checker = createChecker(
            propertyDetailsBuilder, parentValues);

        deviceValue = DeviceValues.DEFAULT;

        // value is different from the parent's value => property is REQUIRED
View Full Code Here


            InitialValueAccuracy.KNOWN);
        propertyDetailsBuilder.setInitialValueSource(
            new FixedInitialValue(DEFAULT_VALUE));

        final PropertyValues parentValues = createOtherParentValues();
        final PropertyClearerCheckerImpl checker = createChecker(
            propertyDetailsBuilder, parentValues);

        deviceValue = DeviceValues.DEFAULT;

        // value is different from the parent's value => property is REQUIRED
View Full Code Here

            InitialValueAccuracy.KNOWN);
        propertyDetailsBuilder.setInitialValueSource(
            new FixedInitialValue(OTHER_VALUE));

        final PropertyValues parentValues = createOtherParentValues();
        final PropertyClearerCheckerImpl checker = createChecker(
            propertyDetailsBuilder, parentValues);

        deviceValue = DeviceValues.DEFAULT;

        // value is different from the parent's value => property is REQUIRED
View Full Code Here

    public void testCheckStatusNotSet() {

        // set up property details set builder
        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        final PropertyClearerCheckerImpl checker =
            createChecker(propertyDetailsBuilder, null);

        deviceValue = DeviceValues.NOT_SET;

        // property will not be set by the device's default stylesheet but the
View Full Code Here

            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInitialValueAccuracy(
            InitialValueAccuracy.KNOWN);
        propertyDetailsBuilder.setInitialValueSource(
            new FixedInitialValue(DEFAULT_VALUE));
        final PropertyClearerCheckerImpl checker =
            createChecker(propertyDetailsBuilder, null);

        deviceValue = DeviceValues.NOT_SET;

        // value is same as the initial value of the device
View Full Code Here

            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInitialValueAccuracy(
            InitialValueAccuracy.KNOWN);
        propertyDetailsBuilder.setInitialValueSource(
            new FixedInitialValue(OTHER_VALUE));
        final PropertyClearerCheckerImpl checker =
            createChecker(propertyDetailsBuilder, null);

        deviceValue = DeviceValues.NOT_SET;

        // value is different from the device's initial value
View Full Code Here

        // set up property details set builder
        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInherited(true);

        final PropertyClearerCheckerImpl checker =
            createChecker(propertyDetailsBuilder, null);

        deviceValue = DeviceValues.NOT_SET;

        // since there is no parent value, the value is required, unless it is
View Full Code Here

        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInherited(true);

        final PropertyValues parentValues = createDefaultParentValues();
        final PropertyClearerCheckerImpl checker =
            createChecker(propertyDetailsBuilder, parentValues);

        deviceValue = DeviceValues.NOT_SET;

        // parent's default value can be inherited
View Full Code Here

        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInherited(true);

        final PropertyValues parentValues = createOtherParentValues();
        final PropertyClearerCheckerImpl checker =
            createChecker(propertyDetailsBuilder, parentValues);

        deviceValue = DeviceValues.NOT_SET;

        // value differs from what can be inherited
View Full Code Here

    public void testCheckStatusKnownValueDefault() {

        // set up property details set builder
        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        final PropertyClearerCheckerImpl checker = createChecker(
            propertyDetailsBuilder, null);

        deviceValue = DEFAULT_VALUE;

        // the same value will be set by the device
View Full Code Here

TOP

Related Classes of com.volantis.mcs.dom2theme.impl.optimizer.PropertyClearerCheckerImpl

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.