Advertisement
Guest User

Untitled

a guest
May 18th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.65 KB | None | 0 0
  1. import java.util.ArrayList;
  2. import java.util.List;
  3. import javax.xml.bind.annotation.XmlAccessType;
  4. import javax.xml.bind.annotation.XmlAccessorType;
  5. import javax.xml.bind.annotation.XmlAttribute;
  6. import javax.xml.bind.annotation.XmlElement;
  7. import javax.xml.bind.annotation.XmlRootElement;
  8. import javax.xml.bind.annotation.XmlType;
  9.  
  10. @XmlAccessorType(XmlAccessType.FIELD)
  11. @XmlRootElement
  12. public class HazardousItems {
  13.  
  14.     @XmlElement
  15.     protected List<HazardousItems.HazardousItem> hazardousItem;
  16.  
  17.     public List<HazardousItems.HazardousItem> getHazardousItem() {
  18.         if (hazardousItem == null)
  19.             hazardousItem = new ArrayList<HazardousItems.HazardousItem>();
  20.  
  21.         return hazardousItem;
  22.     }
  23.    
  24.     @XmlAccessorType(XmlAccessType.FIELD)  
  25.     @XmlType
  26.     public static class HazardousItem {
  27.  
  28.         @XmlAttribute(required = true)
  29.         protected String unlocName;
  30.         @XmlAttribute
  31.         protected boolean exactMatch;
  32.        
  33.         @XmlElement
  34.         protected List<HazardousItems.HazardousItem.ItmDamageEffect> damageEffect;
  35.         @XmlElement
  36.         protected List<HazardousItems.HazardousItem.ItmPotionEffect> potionEffect;
  37.  
  38.  
  39.  
  40.         public String getUnlocName() {
  41.             return unlocName;
  42.         }
  43.  
  44.         public void setUnlocName(String value) {
  45.             this.unlocName = value;
  46.         }
  47.  
  48.         public boolean getExactMatch() {
  49.             return exactMatch;
  50.         }
  51.  
  52.         public void setExactMatch(boolean value) {
  53.             this.exactMatch = value;
  54.         }
  55.  
  56.         public List<HazardousItems.HazardousItem.ItmPotionEffect> getPotionEffect() {
  57.             if (potionEffect == null) {
  58.                 potionEffect = new ArrayList<HazardousItems.HazardousItem.ItmPotionEffect>();
  59.             }
  60.             return this.potionEffect;
  61.         }
  62.  
  63.         public List<HazardousItems.HazardousItem.ItmDamageEffect> getDamageEffect() {
  64.             if (damageEffect == null) {
  65.                 damageEffect = new ArrayList<HazardousItems.HazardousItem.ItmDamageEffect>();
  66.             }
  67.             return this.damageEffect;
  68.         }
  69.    
  70.         @XmlAccessorType(XmlAccessType.FIELD)
  71.         @XmlType
  72.         public static class ItmDamageEffect {
  73.  
  74.             @XmlAttribute
  75.             protected String damageSource;
  76.             @XmlAttribute
  77.             protected Float amount;
  78.  
  79.             public String getDamageSource() {
  80.                 return damageSource;
  81.             }
  82.  
  83.             public void setDamageSource(String value) {
  84.                 this.damageSource = value;
  85.             }
  86.  
  87.             public Float getAmount() {
  88.                 return amount;
  89.             }
  90.  
  91.             public void setAmount(Float value) {
  92.                 this.amount = value;
  93.             }
  94.  
  95.         }
  96.  
  97.         @XmlAccessorType(XmlAccessType.FIELD)
  98.         @XmlType
  99.         public static class ItmPotionEffect {
  100.  
  101.             @XmlAttribute
  102.             protected Integer id;
  103.             @XmlAttribute
  104.             protected Integer duration;
  105.             @XmlAttribute
  106.             protected Integer level;
  107.  
  108.             public Integer getId() {
  109.                 return id;
  110.             }
  111.  
  112.             public void setId(Integer value) {
  113.                 this.id = value;
  114.             }
  115.  
  116.             public Integer getDuration() {
  117.                 return duration;
  118.             }
  119.  
  120.             public void setDuration(Integer value) {
  121.                 this.duration = value;
  122.             }
  123.  
  124.             public Integer getLevel() {
  125.                 return level;
  126.             }
  127.  
  128.             public void setLevel(Integer value) {
  129.                 this.level = value;
  130.             }
  131.         }
  132.     }
  133. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement