ModelNode node = // create a ModelNode Listproperties = node.asPropertyList(); for (Property property : properties) { System.out.println(property.getName() + " = " + property.getValue()); }
ModelNode node = // create a ModelNode ListThis code creates a ModelNode and gets a list of properties from it using asPropertyList(). It then finds a property with the name "property1" and sets its value to "new value". The org.jboss.dmr package contains the classes and interfaces for the ModelNode library.properties = node.asPropertyList(); for (Property property : properties) { if (property.getName().equals("property1")) { property.setValue("new value"); } }