Package com.volantis.devrep.repository.api.devices.policy.values

Examples of com.volantis.devrep.repository.api.devices.policy.values.InternalPolicyValue


    public ImmutableMetaDataValue createMetaDataValue() {
        MutableListValue listValue = VALUE_FACTORY.createListValue();
        List contents = listValue.getContentsAsMutableList();

        for (Iterator i = values.iterator(); i.hasNext();) {
            InternalPolicyValue policyValue = (InternalPolicyValue) i.next();
            contents.add(policyValue.createMetaDataValue());
        }

        return (ImmutableMetaDataValue) listValue.createImmutable();
    }
View Full Code Here


        Map fields =    structureValue.getFieldValuesAsMutableMap();

        for (Iterator i = fieldMap.entrySet().iterator(); i.hasNext();) {
            Map.Entry entry = (Map.Entry) i.next();
            String name = (String) entry.getKey();
            InternalPolicyValue value = (InternalPolicyValue) entry.getValue();
            fields.put(name, value == null ? null : value.createMetaDataValue());
        }

        return (ImmutableMetaDataValue) structureValue.createImmutable();
    }
View Full Code Here

    public ImmutableMetaDataValue createMetaDataValue() {
        MutableSetValue setValue = VALUE_FACTORY.createSetValue();
        Set contents = setValue.getContentsAsMutableSet();

        for (Iterator i = values.iterator(); i.hasNext();) {
            InternalPolicyValue policyValue = (InternalPolicyValue) i.next();
            contents.add(policyValue.createMetaDataValue());
        }

        return (ImmutableMetaDataValue) setValue.createImmutable();
    }
View Full Code Here

    // Javadoc inherited.
    public ImmutableMetaDataValue getPolicyMetaDataValue(String policyName) {
        ensureValid();

        InternalPolicyValue policyValue = (InternalPolicyValue)
                getRealPolicyValue(policyName);
        ImmutableMetaDataValue metaDataValue;
        if (policyValue == null) {
            metaDataValue = null;
        } else {
            metaDataValue = policyValue.createMetaDataValue();
        }

        return metaDataValue;
    }
View Full Code Here

TOP

Related Classes of com.volantis.devrep.repository.api.devices.policy.values.InternalPolicyValue

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.