Skip to content

Instantly share code, notes, and snippets.

@altfatterz
Created October 3, 2013 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save altfatterz/6815847 to your computer and use it in GitHub Desktop.
Save altfatterz/6815847 to your computer and use it in GitHub Desktop.
@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