org.jabber.jabberbeans.Extension
Class IQAgentsBuilder

java.lang.Object
  |
  +--org.jabber.jabberbeans.Extension.IQAgentsBuilder
All Implemented Interfaces:
ExtensionBuilder

public class IQAgentsBuilder
extends java.lang.Object
implements ExtensionBuilder

IQAgentsBuilder is used to construct IQAgents objects

See Also:
Agent, IQAgents

Constructor Summary
IQAgentsBuilder()
          Creates a new IQAgentsBuilder instance.
 
Method Summary
 void addAgent(Agent agent)
          addAgent adds a new agent object to the end of this list.
 Extension build()
          build a new IQAgents object
 void delAgent(Agent agent)
          delAgent removes an agent from this list, if it is present
 java.util.Vector getAgents()
          getAgents returns the vector representing the agent objects associated with this object.
 void reset()
          reset the builder to a default state, so it can be reused.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IQAgentsBuilder

public IQAgentsBuilder()
Creates a new IQAgentsBuilder instance.

Method Detail

reset

public void reset()
reset the builder to a default state, so it can be reused.

Specified by:
reset in interface ExtensionBuilder

addAgent

public void addAgent(Agent agent)
addAgent adds a new agent object to the end of this list.

Parameters:
agent - an Agent value

delAgent

public void delAgent(Agent agent)
delAgent removes an agent from this list, if it is present

Parameters:
agent - an Agent value

getAgents

public java.util.Vector getAgents()
getAgents returns the vector representing the agent objects associated with this object.

Returns:
a Vector value

build

public Extension build()
                throws java.lang.InstantiationException
build a new IQAgents object

Specified by:
build in interface ExtensionBuilder
Returns:
an Extension value
Throws:
java.lang.InstantiationException - if insufficient or incorrect data was proviced.