Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- import java.util.List;
- import javax.xml.bind.annotation.XmlAccessType;
- import javax.xml.bind.annotation.XmlAccessorType;
- import javax.xml.bind.annotation.XmlAttribute;
- import javax.xml.bind.annotation.XmlElement;
- import javax.xml.bind.annotation.XmlRootElement;
- import javax.xml.bind.annotation.XmlType;
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlRootElement
- public class HazardousItems {
- @XmlElement
- protected List<HazardousItems.HazardousItem> hazardousItem;
- public List<HazardousItems.HazardousItem> getHazardousItem() {
- if (hazardousItem == null)
- hazardousItem = new ArrayList<HazardousItems.HazardousItem>();
- return hazardousItem;
- }
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType
- public static class HazardousItem {
- @XmlAttribute(required = true)
- protected String unlocName;
- @XmlAttribute
- protected boolean exactMatch;
- @XmlElement
- protected List<HazardousItems.HazardousItem.ItmDamageEffect> damageEffect;
- @XmlElement
- protected List<HazardousItems.HazardousItem.ItmPotionEffect> potionEffect;
- public String getUnlocName() {
- return unlocName;
- }
- public void setUnlocName(String value) {
- this.unlocName = value;
- }
- public boolean getExactMatch() {
- return exactMatch;
- }
- public void setExactMatch(boolean value) {
- this.exactMatch = value;
- }
- public List<HazardousItems.HazardousItem.ItmPotionEffect> getPotionEffect() {
- if (potionEffect == null) {
- potionEffect = new ArrayList<HazardousItems.HazardousItem.ItmPotionEffect>();
- }
- return this.potionEffect;
- }
- public List<HazardousItems.HazardousItem.ItmDamageEffect> getDamageEffect() {
- if (damageEffect == null) {
- damageEffect = new ArrayList<HazardousItems.HazardousItem.ItmDamageEffect>();
- }
- return this.damageEffect;
- }
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType
- public static class ItmDamageEffect {
- @XmlAttribute
- protected String damageSource;
- @XmlAttribute
- protected Float amount;
- public String getDamageSource() {
- return damageSource;
- }
- public void setDamageSource(String value) {
- this.damageSource = value;
- }
- public Float getAmount() {
- return amount;
- }
- public void setAmount(Float value) {
- this.amount = value;
- }
- }
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType
- public static class ItmPotionEffect {
- @XmlAttribute
- protected Integer id;
- @XmlAttribute
- protected Integer duration;
- @XmlAttribute
- protected Integer level;
- public Integer getId() {
- return id;
- }
- public void setId(Integer value) {
- this.id = value;
- }
- public Integer getDuration() {
- return duration;
- }
- public void setDuration(Integer value) {
- this.duration = value;
- }
- public Integer getLevel() {
- return level;
- }
- public void setLevel(Integer value) {
- this.level = value;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement