public List<String> getDescriptionList() { List<String> result = new ArrayList<String>(); List<Node> nodes = childNode.get("description"); for (Node node : nodes) { result.add(node.text()); } return result; }
public Map<String, String> getProperties() { Node props = protocol.getSingle("configuration"); Map<String, String> properties = new HashMap<String, String>(); if (props != null) { for (Node prop : props.get("property")) { properties.put(prop.attribute("name"), prop.text()); } } return properties; }