Package com.volantis.mcs.devices.policy.types

Examples of com.volantis.mcs.devices.policy.types.OrderedSetPolicyType


        if (type instanceof SimplePolicyType) {
            value = createSimplePolicyValue(policyValue, (SimplePolicyType) type);
        } else if (type instanceof CompositePolicyType) {
            if (type instanceof OrderedSetPolicyType) {
                OrderedSetPolicyType orderedSetType =
                        (OrderedSetPolicyType) type;
                value = new DefaultOrderedSetPolicyValue(
                        orderedSetType.getMemberPolicyType(), policyValue);
            } else if (type instanceof UnorderedSetPolicyType) {
                UnorderedSetPolicyType unorderedSetType =
                        (UnorderedSetPolicyType) type;
                value = new DefaultUnorderedSetPolicyValue(
                        unorderedSetType.getMemberPolicyType(), policyValue);
View Full Code Here


                    connection, "OrderedSetPolicy", locale);
            policyType = policyDescriptor.getPolicyType();
            assertNotNull("Policy Descriptor should be found", policyDescriptor);
            assertTrue("Type should match: " + policyType,
                    policyType instanceof OrderedSetPolicyType);
            OrderedSetPolicyType orderedSetType =
                    (OrderedSetPolicyType)policyType;

            policyType = orderedSetType.getMemberPolicyType();
            assertTrue("Type should match: " + policyType,
                    policyType instanceof IntPolicyType);

            repository = createRepository(oneMoreProject);
            accessor =
View Full Code Here

                        " communicate with the browser");
                assertEquals("Category should match (ordered set)",
                        descriptor.getCategoryName(),
                        "browser");
                // Ensure the type is of the correct type (try a cast!)
                OrderedSetPolicyType orderedSetType =
                        (OrderedSetPolicyType) descriptor.getPolicyType();
                PolicyType memberType = orderedSetType.getMemberPolicyType();
                assertTrue("Type of set values should match",
                        memberType instanceof SelectionPolicyType);

                // ------------------------------------------------------------
                // unordered set
View Full Code Here

TOP

Related Classes of com.volantis.mcs.devices.policy.types.OrderedSetPolicyType

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.