org.jabber.jabberbeans.Extension
Class IQAgentsBuilder

java.lang.Object
  |
  +--org.jabber.jabberbeans.Extension.IQAgentsBuilder

public class IQAgentsBuilder
extends java.lang.Object
implements ExtensionBuilder

IQAgentsBuilder is used to construct IQAgents objects

Version:
$Revision: 1.1.1.1 $
Author:
David Waite <dwaite@jabber.com>, $Author: lucky $
See Also:
Agent, IQAgents

Field Summary
private  java.util.Vector agentList
          Vector of Agents objects contained.
 
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, registerNatives, toString, wait, wait, wait
 

Field Detail

agentList

private java.util.Vector agentList
Vector of Agents objects contained.
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.