public class UpdateDescriptionDocument
extends java.lang.Object
| Constructor and Description |
|---|
UpdateDescriptionDocument(java.lang.String href)
Load a UDD from a URL
|
UpdateDescriptionDocument(java.lang.String details,
java.net.URL updateSource,
java.lang.String versionTag)
Manually construct a document.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fromXML(org.jdom.Document document)
Parse a UDD from XML
|
java.lang.String |
getDetails(java.lang.String locale)
Get the details of the update, typically a short description of any new features.
|
java.net.URL |
getUpdateSource()
Get the URL for the updated widget
|
java.lang.String |
getVersionTag()
Get the version tag for the update
|
org.jdom.Element |
toXml() |
public UpdateDescriptionDocument(java.lang.String details,
java.net.URL updateSource,
java.lang.String versionTag)
details - updateSource - versionTag - public UpdateDescriptionDocument(java.lang.String href)
throws InvalidUDDException
href - the URL to load the UDD fromInvalidUDDException - if the UDD cannot be found, or is not validpublic java.lang.String getDetails(java.lang.String locale)
locale - the preferred locale for the detailspublic java.net.URL getUpdateSource()
public java.lang.String getVersionTag()
public void fromXML(org.jdom.Document document)
throws InvalidUDDException
document - the XML document to parseInvalidUDDException - if the document is not a valid UDDpublic org.jdom.Element toXml()
2012 Apache Software Foundation.