org.jabber.jabberbeans.Extension
Class UpdateInfoBuilder

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

public class UpdateInfoBuilder
extends java.lang.Object

An UpdateInfoBuilder is used to construct UpdateInfo objects


Constructor Summary
UpdateInfoBuilder()
          Creates a new UpdateInfoBuilder instance.
 
Method Summary
 UpdateInfo build()
          build an UpdateInfo based on the current builder state
 java.lang.String getPriority()
          gets the priority of the update (optional , mandatory)
 java.lang.String getType()
          gets the type of update (be it 'beta', 'release', or 'dev')
 java.lang.String getURL()
          gets the URL where the software is located
 java.lang.String getVersion()
          gets the version string associated with the update
 void reset()
          resets the state of the builder, for reuse
 void setPriority(java.lang.String priority)
          sets the priority of the update (optional , mandatory)
 void setType(java.lang.String type)
          sets the type of update (be it 'beta', 'release', or 'dev')
 void setURL(java.lang.String URL)
          sets the URL where the software is located
 void setVersion(java.lang.String version)
          sets the version string associated with the update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateInfoBuilder

public UpdateInfoBuilder()
Creates a new UpdateInfoBuilder instance.

Method Detail

reset

public void reset()
resets the state of the builder, for reuse


getType

public java.lang.String getType()
gets the type of update (be it 'beta', 'release', or 'dev')

Returns:
a String value holding the type

setType

public void setType(java.lang.String type)
sets the type of update (be it 'beta', 'release', or 'dev')

Parameters:
type - a String value holding the type

getVersion

public java.lang.String getVersion()
gets the version string associated with the update

Returns:
a String holding the version of the update

setVersion

public void setVersion(java.lang.String version)
sets the version string associated with the update

Parameters:
version - a String holding the version of the update

getURL

public java.lang.String getURL()
gets the URL where the software is located

Returns:
a String holding the URL

setURL

public void setURL(java.lang.String URL)
sets the URL where the software is located

Parameters:
URL - a String holding the URL

getPriority

public java.lang.String getPriority()
gets the priority of the update (optional , mandatory)

Returns:
a String holding the update priority

setPriority

public void setPriority(java.lang.String priority)
sets the priority of the update (optional , mandatory)

Parameters:
priority - a String holding the update priority

build

public UpdateInfo build()
build an UpdateInfo based on the current builder state

Returns:
UpdateInfo object