Examples of UnorderedSetPolicyType


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

                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);
            }
        } else {
            logger.warn("policy-type-unknown", new Object[]{type});
        }
        return value;
View Full Code Here

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

                        "List of content types the device supports for push");
                assertEquals("Category should match (unordered set)",
                        descriptor.getCategoryName(),
                        "message");
                // Ensure the type is of the correct type (try a cast!)
                UnorderedSetPolicyType unorderedSetType =
                        (UnorderedSetPolicyType) descriptor.getPolicyType();
                memberType = unorderedSetType.getMemberPolicyType();
                assertTrue("Type of set values should match",
                        memberType instanceof TextPolicyType);

                {
                    // -------------------------------------------------------
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.