Skip to content

Instantly share code, notes, and snippets.

@altfatterz
Created October 3, 2013 19:42
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/6815876 to your computer and use it in GitHub Desktop.
Save altfatterz/6815876 to your computer and use it in GitHub Desktop.
@XmlAccessorType(XmlAccessType.FIELD)
public class WidgetResourceRef {
@XmlAttribute
private String type;
@XmlAttribute
private String src;
/** Default constructor, needed for JAXB framework */
public WidgetResourceRef() {
}
public WidgetResourceRef(String type, String src) {
this.type = type;
this.src = src;
}
public String getType() {
return type;
}
public String getSrc() {
return src;
}
public void setType(String type) {
this.type = type;
}
public void setSrc(String src) {
this.src = src;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment