if ( node.getChildren().isEmpty() && node.getAttributes().isEmpty() && text != null ) { return text; if ( node.getChildren().size() == 1 && node.getAttributes().isEmpty() && text == null ) { return node.getChildValue( 0 ); if ( node.getAttributes().size() == 1 && node.getChildren().isEmpty() && text == null ) { return ((Node)node.getAttributes().get( 0 )).getValue(); List attributes = node.getAttributes(); List children = node.getChildren(); mapBinding(map, attributes);
if (node.getChildren().isEmpty() && node.getAttributes().isEmpty() && (text != null)) { return text; if ((node.getChildren().size() == 1) && node.getAttributes().isEmpty() && (text == null)) { return node.getChildValue(0); if ((node.getAttributes().size() == 1) && node.getChildren().isEmpty() && (text == null)) { return ((Node) node.getAttributes().get(0)).getValue(); List attributes = node.getAttributes(); List children = node.getChildren(); mapBinding(map, attributes);
if (node.getChildren().isEmpty() && node.getAttributes().isEmpty() && (text != null)) { return text; if ((node.getChildren().size() == 1) && node.getAttributes().isEmpty() && (text == null)) { return node.getChildValue(0); if ((node.getAttributes().size() == 1) && node.getChildren().isEmpty() && (text == null)) { return ((Node) node.getAttributes().get(0)).getValue(); List attributes = node.getAttributes(); List children = node.getChildren(); mapBinding(map, attributes);
/** * Helper method for settings properties of an eobject. */ void setProperties(EObject eObject, Node node, boolean lax ) { // reflectivley set the properties of it for (Iterator c = node.getChildren().iterator(); c.hasNext();) { Node child = (Node) c.next(); String property = child.getComponent().getName(); setProperty(eObject, property, child.getValue(), lax); } for (Iterator a = node.getAttributes().iterator(); a.hasNext();) { Node att = (Node) a.next(); String property = att.getComponent().getName(); setProperty(eObject, property, att.getValue(), lax); } }