|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jabber.jabberbeans.Extension.UpdateInfoBuilder
An UpdateInfoBuilder
is used to construct UpdateInfo objects
Field Summary | |
private java.lang.String |
priority
priority indicates how severe the priority of the release
has been ranked. |
private java.lang.String |
type
type is the type of update, be it a "release", a "beta",
or a "dev" release. |
private java.lang.String |
URL
URL holds the unique resource locator value for the
client (or user) to get a software update. |
private java.lang.String |
version
version is the version of the software being reported,
hopefully the most recent release available. |
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 |
|
Field Detail |
private java.lang.String type
type
is the type of update, be it a "release", a "beta",
or a "dev" release.private java.lang.String version
version
is the version of the software being reported,
hopefully the most recent release available.private java.lang.String URL
URL
holds the unique resource locator value for the
client (or user) to get a software update.private java.lang.String priority
priority
indicates how severe the priority of the release
has been ranked. Options are "optional" or "mandatory"Constructor Detail |
public UpdateInfoBuilder()
UpdateInfoBuilder
instance.Method Detail |
public void reset()
public java.lang.String getType()
String
value holding the typepublic void setType(java.lang.String type)
type
- a String
value holding the typepublic java.lang.String getVersion()
String
holding the version of the updatepublic void setVersion(java.lang.String version)
version
- a String
holding the version of the updatepublic java.lang.String getURL()
String
holding the URLpublic void setURL(java.lang.String URL)
URL
- a String
holding the URLpublic java.lang.String getPriority()
String
holding the update prioritypublic void setPriority(java.lang.String priority)
priority
- a String
holding the update prioritypublic UpdateInfo build()
UpdateInfo
based on the current builder stateUpdateInfo
object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |