Package com.volantis.mcs.devices.policy.values

Examples of com.volantis.mcs.devices.policy.values.SimplePolicyValue


        if (valueString == null) {
            StringBuffer buffer = new StringBuffer();
            Set keys = fieldMap.keySet();
            for (Iterator i = keys.iterator(); i.hasNext(); ) {
                Object key = i.next();
                SimplePolicyValue value = (SimplePolicyValue)fieldMap.get(key);
                buffer.append(key);
                buffer.append(":");
                buffer.append(value == null ? "null" : value.getAsString());
                if (i.hasNext()) {
                    buffer.append(" ");
                }
            }
            valueString = buffer.toString();
View Full Code Here


     * specified policy type.
     */
    private SimplePolicyValue createSimplePolicyValue(String policyValue,
                                                      SimplePolicyType type)
            throws DeviceRepositoryException {
        SimplePolicyValue value = null;
        if (type instanceof BooleanPolicyType) {
            value = new DefaultBooleanPolicyValue(policyValue);
        } else if (type instanceof IntPolicyType) {
            if (policyValue.length() > 0) {
                value = new DefaultIntPolicyValue(policyValue);
View Full Code Here

        for (Iterator i = keys.iterator(); i.hasNext();) {
            try {
                String fieldName = (String) i.next();
                String fullName = policyName + "." + fieldName;

                SimplePolicyValue fieldValue = null;
                PolicyType fieldType = (PolicyType) fieldTypes.get(fieldName);
                if (!(fieldType instanceof SimplePolicyType)) {
                    throw new IllegalStateException(
                            "Can only have simple types inside a structured type");
                }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.devices.policy.values.SimplePolicyValue

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.