Package com.volantis.mcs.policies.variants.text

Examples of com.volantis.mcs.policies.variants.text.TextMetaData


        SelectedVariant selectedVariant = getSelectedVariant();
        if (selectedVariant != null) {
            Variant variant = selectedVariant.getVariant();
            if (variant != null) {
                TextMetaData metaData = (TextMetaData) variant.getMetaData();
                if (metaData.getTextEncoding() == encoding) {
                    text = assetResolver.getContentsFromVariant(selectedVariant);
                } else {
                    if (logger.isDebugEnabled()) {
                        logger.debug("Text for policy " +
                                getPolicyReference() + " does not have " +
View Full Code Here


    public RepositoryObject createOldObject(
            ActivatedVariablePolicy policy, Variant variant,
            InternalDevice device) {

        // Convert the variant into an asset.
        TextMetaData metaData = (TextMetaData) variant.getMetaData();

        TextAsset asset = new TextAsset();

        setAssetIdentity(policy, asset);

        asset.setEncoding(ENCODING.get(metaData.getTextEncoding()));
        asset.setLanguage(metaData.getLanguage());

        setValue(asset, variant);

        return asset;
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.variants.text.TextMetaData

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.