org.jabber.jabberbeans.Extension
Class PacketErrorBuilder

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

public class PacketErrorBuilder
extends java.lang.Object
implements ExtensionBuilder

PacketErrorBuilder is used to construct PacketError objects


Field Summary
protected  java.util.Vector children
          error children (except xmlns='urn:ietf:params:xml:ns:xmpp-stanzas')
protected  java.lang.String code
          error code
protected  java.lang.String condition
          error condition
protected  java.lang.String text
          error text
protected  java.lang.String type
          error type
 
Constructor Summary
PacketErrorBuilder()
          Creates a new PacketErrorBuilder instance.
 
Method Summary
 void addChild(XMLData child)
          adds an error child (except xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'), which is in condition field.
 Extension build()
          build a new PacketError object
 java.util.Vector getChildren()
          returns error children (except xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'), which is in condition field.
 java.lang.String getCode()
          returns the error code.
 java.lang.String getCondition()
          returns the XMPP error condition.
 java.lang.String getText()
          returns the error text.
 java.lang.String getType()
          returns the error type.
 void reset()
          reset the builder to a default state, so it can be reused.
 void setCode(java.lang.String code)
          sets the error code.
 void setCondition(java.lang.String condition)
          sets the XMPP error condition.
 void setText(java.lang.String text)
          sets the error text.
 void setType(java.lang.String type)
          sets the error type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected java.lang.String type
error type


text

protected java.lang.String text
error text


code

protected java.lang.String code
error code


condition

protected java.lang.String condition
error condition


children

protected java.util.Vector children
error children (except xmlns='urn:ietf:params:xml:ns:xmpp-stanzas')

Constructor Detail

PacketErrorBuilder

public PacketErrorBuilder()
Creates a new PacketErrorBuilder 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

getType

public java.lang.String getType()
returns the error type.


setType

public void setType(java.lang.String type)
sets the error type.


getText

public java.lang.String getText()
returns the error text.


setText

public void setText(java.lang.String text)
sets the error text.


getCode

public java.lang.String getCode()
returns the error code.


setCode

public void setCode(java.lang.String code)
sets the error code.


getCondition

public java.lang.String getCondition()
returns the XMPP error condition.


setCondition

public void setCondition(java.lang.String condition)
sets the XMPP error condition.


getChildren

public java.util.Vector getChildren()
returns error children (except xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'), which is in condition field.


addChild

public void addChild(XMLData child)
adds an error child (except xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'), which is in condition field.


build

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

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