Package com.volantis.mcs.policies.variants

Examples of com.volantis.mcs.policies.variants.VariantType


        while (device != null) {
            String deviceName = device.getName();

            Variant variant = policy.getDeviceTargetedVariant(deviceName);
            if (variant != null) {
                VariantType type = variant.getVariantType();
                if (type != VariantType.NULL) {
                    ActivatedThemeContent content = (ActivatedThemeContent)
                            variant.getContent();
                    if (content.getImportParent()) {
                        addParentRules(policy, device, list);
View Full Code Here


                    return selectBest(context, policy, requiredEncodings);
                }
            }
        } else {
            Variant variant = selection.getVariant();
            VariantType variantType = variant.getVariantType();
            if (variantType == VariantType.NULL) {
                selection = new SelectedVariantImpl(policy, null,
                        selection.getDevice(), null);
            }
        }
View Full Code Here

    private Variant filter(
            InternalDevice device, Variant variant,
            EncodingCollection requiredEncodings) {

        VariantType variantType = variant.getVariantType();
        VariantFilter filter = (VariantFilter)
                VARIANT_TYPE_2_FILTER.get(variantType);
        return filter.filter(device, variant, requiredEncodings);
    }
View Full Code Here

    }

    private static MarinerURL getPrefixURL(
            RuntimeProject project, Asset asset) {

        VariantType variantType;
        if (asset instanceof AudioAsset) {
            variantType = VariantType.AUDIO;
        } else if (asset instanceof DynamicVisualAsset) {
            variantType = VariantType.VIDEO;
        } else if (asset instanceof ImageAsset) {
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.variants.VariantType

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.