001 //
002 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
003 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004 // Any modifications to this file will be lost upon recompilation of the source schema.
005 // Generated on: 2013.02.07 at 02:32:38 PM CET
006 //
007
008
009 package org.jabber.protocol.amp;
010
011 import java.util.ArrayList;
012 import java.util.List;
013 import javax.xml.bind.annotation.XmlAccessType;
014 import javax.xml.bind.annotation.XmlAccessorType;
015 import javax.xml.bind.annotation.XmlAttribute;
016 import javax.xml.bind.annotation.XmlElement;
017 import javax.xml.bind.annotation.XmlRootElement;
018 import javax.xml.bind.annotation.XmlSchemaType;
019 import javax.xml.bind.annotation.XmlType;
020 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
021 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
022
023
024 /**
025 * <p>Java class for anonymous complex type.
026 *
027 * <p>The following schema fragment specifies the expected content contained within this class.
028 *
029 * <pre>
030 * <complexType>
031 * <complexContent>
032 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
033 * <sequence>
034 * <element ref="{http://jabber.org/protocol/amp}rule" maxOccurs="unbounded"/>
035 * </sequence>
036 * <attribute name="from" type="{http://www.w3.org/2001/XMLSchema}string" />
037 * <attribute name="per-hop" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
038 * <attribute name="status" type="{http://www.w3.org/2001/XMLSchema}NCName" />
039 * <attribute name="to" type="{http://www.w3.org/2001/XMLSchema}string" />
040 * </restriction>
041 * </complexContent>
042 * </complexType>
043 * </pre>
044 *
045 *
046 */
047 @XmlAccessorType(XmlAccessType.FIELD)
048 @XmlType(name = "", propOrder = {
049 "rule"
050 })
051 @XmlRootElement(name = "amp")
052 public class Amp {
053
054 @XmlElement(required = true)
055 protected List<Rule> rule;
056 @XmlAttribute
057 protected String from;
058 @XmlAttribute(name = "per-hop")
059 protected Boolean perHop;
060 @XmlAttribute
061 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
062 @XmlSchemaType(name = "NCName")
063 protected String status;
064 @XmlAttribute
065 protected String to;
066
067 /**
068 * Gets the value of the rule property.
069 *
070 * <p>
071 * This accessor method returns a reference to the live list,
072 * not a snapshot. Therefore any modification you make to the
073 * returned list will be present inside the JAXB object.
074 * This is why there is not a <CODE>set</CODE> method for the rule property.
075 *
076 * <p>
077 * For example, to add a new item, do as follows:
078 * <pre>
079 * getRule().add(newItem);
080 * </pre>
081 *
082 *
083 * <p>
084 * Objects of the following type(s) are allowed in the list
085 * {@link Rule }
086 *
087 *
088 */
089 public List<Rule> getRule() {
090 if (rule == null) {
091 rule = new ArrayList<Rule>();
092 }
093 return this.rule;
094 }
095
096 /**
097 * Gets the value of the from property.
098 *
099 * @return
100 * possible object is
101 * {@link String }
102 *
103 */
104 public String getFrom() {
105 return from;
106 }
107
108 /**
109 * Sets the value of the from property.
110 *
111 * @param value
112 * allowed object is
113 * {@link String }
114 *
115 */
116 public void setFrom(String value) {
117 this.from = value;
118 }
119
120 /**
121 * Gets the value of the perHop property.
122 *
123 * @return
124 * possible object is
125 * {@link Boolean }
126 *
127 */
128 public boolean isPerHop() {
129 if (perHop == null) {
130 return false;
131 } else {
132 return perHop;
133 }
134 }
135
136 /**
137 * Sets the value of the perHop property.
138 *
139 * @param value
140 * allowed object is
141 * {@link Boolean }
142 *
143 */
144 public void setPerHop(Boolean value) {
145 this.perHop = value;
146 }
147
148 /**
149 * Gets the value of the status property.
150 *
151 * @return
152 * possible object is
153 * {@link String }
154 *
155 */
156 public String getStatus() {
157 return status;
158 }
159
160 /**
161 * Sets the value of the status property.
162 *
163 * @param value
164 * allowed object is
165 * {@link String }
166 *
167 */
168 public void setStatus(String value) {
169 this.status = value;
170 }
171
172 /**
173 * Gets the value of the to property.
174 *
175 * @return
176 * possible object is
177 * {@link String }
178 *
179 */
180 public String getTo() {
181 return to;
182 }
183
184 /**
185 * Sets the value of the to property.
186 *
187 * @param value
188 * allowed object is
189 * {@link String }
190 *
191 */
192 public void setTo(String value) {
193 this.to = value;
194 }
195
196 }