All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jabber.protocol.amp.Amp Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2020.10.04 at 01:10:24 PM KST 
//


package org.jabber.protocol.amp;

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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{http://jabber.org/protocol/amp}rule" maxOccurs="unbounded"/>
 *       </sequence>
 *       <attribute name="from" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="per-hop" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="status" type="{http://www.w3.org/2001/XMLSchema}NCName" />
 *       <attribute name="to" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "rule" }) @XmlRootElement(name = "amp") public class Amp { @XmlElement(required = true) protected List rule; @XmlAttribute(name = "from") protected String from; @XmlAttribute(name = "per-hop") protected Boolean perHop; @XmlAttribute(name = "status") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NCName") protected String status; @XmlAttribute(name = "to") protected String to; /** * Gets the value of the rule property. * *

* 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 set method for the rule property. * *

* For example, to add a new item, do as follows: *

     *    getRule().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Rule } * * */ public List getRule() { if (rule == null) { rule = new ArrayList(); } return this.rule; } /** * Gets the value of the from property. * * @return * possible object is * {@link String } * */ public String getFrom() { return from; } /** * Sets the value of the from property. * * @param value * allowed object is * {@link String } * */ public void setFrom(String value) { this.from = value; } /** * Gets the value of the perHop property. * * @return * possible object is * {@link Boolean } * */ public boolean isPerHop() { if (perHop == null) { return false; } else { return perHop; } } /** * Sets the value of the perHop property. * * @param value * allowed object is * {@link Boolean } * */ public void setPerHop(Boolean value) { this.perHop = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link String } * */ public String getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link String } * */ public void setStatus(String value) { this.status = value; } /** * Gets the value of the to property. * * @return * possible object is * {@link String } * */ public String getTo() { return to; } /** * Sets the value of the to property. * * @param value * allowed object is * {@link String } * */ public void setTo(String value) { this.to = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy