Package com.volantis.devrep.device.api.xml.policy

Examples of com.volantis.devrep.device.api.xml.policy.PolicyField


    }

    private void dumpFields(StringBuffer buffer, Iterator fields) {
        buffer.append("  Fields:\n");
        while (fields.hasNext()) {
            PolicyField policyField = (PolicyField) fields.next();
            buffer.append("    " + policyField.getName() + " = '" +
                    policyField.getValue() + "',\n");
        }
    }
View Full Code Here


            if (fields.hasNext()) {
                // it has fields, so this is a structure entry.
                // NOTE: schema says each field can contain multiple values but
                // this is not used so is not implemented.
                while (fields.hasNext()) {
                    PolicyField field = (PolicyField) fields.next();
                    String name = entry.getName() + "." + field.getName();
                    device.setPolicyValue(name, field.getValue());
                }
            } else if (values.hasNext()) {
                // it has values, so it is a simple entry which may have
                // multiple values.
                String value = (String) values.next();
View Full Code Here

TOP

Related Classes of com.volantis.devrep.device.api.xml.policy.PolicyField

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.