org.jabber.protocol.amp
Class Amp

java.lang.Object
  extended by org.jabber.protocol.amp.Amp

public class Amp
extends Object

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>
 


Field Summary
protected  String from
           
protected  Boolean perHop
           
protected  List<Rule> rule
           
protected  String status
           
protected  String to
           
 
Constructor Summary
Amp()
           
 
Method Summary
 String getFrom()
          Gets the value of the from property.
 List<Rule> getRule()
          Gets the value of the rule property.
 String getStatus()
          Gets the value of the status property.
 String getTo()
          Gets the value of the to property.
 boolean isPerHop()
          Gets the value of the perHop property.
 void setFrom(String value)
          Sets the value of the from property.
 void setPerHop(Boolean value)
          Sets the value of the perHop property.
 void setStatus(String value)
          Sets the value of the status property.
 void setTo(String value)
          Sets the value of the to property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rule

protected List<Rule> rule

from

protected String from

perHop

protected Boolean perHop

status

protected String status

to

protected String to
Constructor Detail

Amp

public Amp()
Method Detail

getRule

public List<Rule> getRule()
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 Rule


getFrom

public String getFrom()
Gets the value of the from property.

Returns:
possible object is String

setFrom

public void setFrom(String value)
Sets the value of the from property.

Parameters:
value - allowed object is String

isPerHop

public boolean isPerHop()
Gets the value of the perHop property.

Returns:
possible object is Boolean

setPerHop

public void setPerHop(Boolean value)
Sets the value of the perHop property.

Parameters:
value - allowed object is Boolean

getStatus

public String getStatus()
Gets the value of the status property.

Returns:
possible object is String

setStatus

public void setStatus(String value)
Sets the value of the status property.

Parameters:
value - allowed object is String

getTo

public String getTo()
Gets the value of the to property.

Returns:
possible object is String

setTo

public void setTo(String value)
Sets the value of the to property.

Parameters:
value - allowed object is String


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.