Created
October 3, 2013 19:40
-
-
Save altfatterz/6815847 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@XmlRootElement(name = "widget", namespace = "http://www.backbase.com/ns/widgets") | |
@XmlAccessorType(XmlAccessType.FIELD) | |
public class WidgetConfig { | |
@XmlElementWrapper(name = "resources", namespace = "http://www.backbase.com/ns/widgets") | |
@XmlElement(name = "resource", namespace = "http://www.backbase.com/ns/widgets") | |
private List<WidgetResourceRef> widgetResourceRefs; | |
public WidgetConfig() { | |
widgetResourceRefs = new ArrayList<>(); | |
} | |
public void addWidgetResource(WidgetResourceRef widgetResourceRef) { | |
widgetResourceRefs.add(widgetResourceRef); | |
} | |
public List<WidgetResourceRef> getWidgetResourceRefs() { | |
return widgetResourceRefs; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment