content: /**
   * This file is part of Aion-Lightning <aion-lightning.org>.
   *
   *  Aion-Lightning is free software: you can redistribute it and/or modify
   *  it under the terms of the GNU General Public License as published by
   *  the Free Software Foundation, either version 3 of the License, or
   *  (at your option) any later version.
   *
   *  Aion-Lightning is distributed in the hope that it will be useful,
   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   *  GNU General Public License for more details. *
   *  You should have received a copy of the GNU General Public License
   *  along with Aion-Lightning.
   *  If not, see <http://www.gnu.org/licenses/>.
   */
  package com.aionemu.gameserver.model.templates.npcshout;
  
  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.XmlType;
  
  /**
   * @author Rolandas
   */
  
  /**
   * <p/>
   * Java class for ShoutList complex type.
   * <p/>
   * The following schema fragment specifies the expected content contained within this class.
   * <p/>
   * 
   * <pre>
   * &lt;complexType name="ShoutList">
   *   &lt;complexContent>
   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
   *       &lt;sequence>
   *         &lt;element name="shout" type="{}NpcShout" maxOccurs="unbounded"/>
   *       &lt;/sequence>
   *       &lt;attribute name="npc_ids" use="required" type="{}NpcList" />
   *       &lt;attribute name="restrict_world" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
   *     &lt;/restriction>
   *   &lt;/complexContent>
   * &lt;/complexType>
   * </pre>
   */
  @XmlAccessorType(XmlAccessType.FIELD)
  @XmlType(name = "ShoutList", propOrder = { "npcShouts" })
  public class ShoutList {
  
  	@XmlElement(name = "shout", required = true)
  	protected List<NpcShout> npcShouts;
  	@XmlAttribute(name = "npc_ids", required = true)
  	protected List<Integer> npcIds;
  	@XmlAttribute(name = "restrict_world")
  	protected Integer restrictWorld;
  
  	/**
  	 * Gets the value of the npcShouts property.
  	 * <p/>
  	 * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is
  	 * not a <CODE>set</CODE> method for the npcShouts property.
  	 * <p/>
  	 * For example, to add a new item, do as follows:
  	 * <p/>
  	 * 
  	 * <pre>
  	 * getNpcShouts().add(newItem);
  	 * </pre>
  	 * <p/>
  	 * Objects of the following type(s) are allowed in the list {@link NpcShout }
  	 */
  	public List<NpcShout> getNpcShouts() {
  		if (npcShouts == null) {
  			npcShouts = new ArrayList<NpcShout>();
  		}
  		return this.npcShouts;
  	}
  
  	/**
  	 * Gets the value of the npcIds property.
  	 * <p/>
  	 * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is
  	 * not a <CODE>set</CODE> method for the npcIds property.
  	 * <p/>
  	 * For example, to add a new item, do as follows:
  	 * <p/>
  	 * 
  	 * <pre>
  	 * getNpcIds().add(newItem);
  	 * </pre>
  	 * <p/>
  	 * Objects of the following type(s) are allowed in the list {@link Integer }
  	 */
  	public List<Integer> getNpcIds() {
  		if (npcIds == null) {
  			npcIds = new ArrayList<Integer>();
  		}
  		return this.npcIds;
  	}
  
  	/**
  	 * Gets the value of the restrictWorld property.
  	 *
  	 * @return possible object is {@link Integer }
  	 */
  	public int getRestrictWorld() {
  		if (restrictWorld == null) {
  			return 0;
  		}
  		return restrictWorld;
  	}
  
  	public void makeNull() {
  		this.npcIds = null;
  		this.npcShouts = null;
  		this.restrictWorld = null;
  	}
  }
  