|
install4j API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UpdateDescriptorEntry
Contains information about a single media file available for update. Instances of this
class are returned by an UpdateDescriptor
.
Method Summary | |
---|---|
boolean |
checkVersionCompatible(java.lang.String version)
Checks if a version is compatible with the minimum and maximum versions set in this update descriptor entry. |
java.lang.String |
getAdditionalAttribute(java.lang.String attributeName,
java.lang.String defaultValue)
Returns an additional attribute that you have added to the entry element in the updates.xml file represented by this instance. |
java.lang.String |
getBundledJre()
Returns the identifier of the bundled JRE. |
java.lang.String |
getComment()
Returns the comment for this entry. |
java.lang.String |
getFileName()
Returns the file name of the update installer. |
long |
getFileSize()
Returns the file size of the update installer in bytes. |
java.lang.String |
getFileSizeVerbose()
Returns the file size of the update installer as a verbose string. |
java.lang.String |
getNewMediaFileId()
Returns the media file ID of the update installer that is represented by this entry. |
java.lang.String |
getNewVersion()
Returns the version of the available update. |
java.lang.String |
getTargetMediaFileId()
Returns the media file ID for which this update is suitable. |
java.lang.String |
getUpdatableVersionMax()
Returns the maximum version that is eligible for an update. |
java.lang.String |
getUpdatableVersionMin()
Returns the minimum version that is eligible for an update. |
java.net.URL |
getURL()
Returns the full URL from which the update installer can be downloaded. |
boolean |
isArchive()
Returns whether the media file is an installer or an archive. |
Method Detail |
---|
java.lang.String getTargetMediaFileId()
Note: install4j creates one update descriptor entry for each media file. If you discontinue a media file, you can duplicate a suitable update descriptor entry in updates.xml and set its target media file ID to that of the discontinued media file.
java.lang.String getUpdatableVersionMin()
By default, this is empty string. If you want to set a minimum version, you can change the updatableVersionMin attribute on the corresponding entry element in the updates.xml file.
java.lang.String getUpdatableVersionMax()
By default, this is empty string. If you want to set a maximum version, you can change the updatableVersionMax attribute on the corresponding entry element in the updates.xml file.
java.lang.String getFileName()
java.net.URL getURL()
base url
of the update descriptor
.
java.lang.String getNewVersion()
java.lang.String getNewMediaFileId()
boolean isArchive()
long getFileSize()
java.lang.String getFileSizeVerbose()
java.lang.String getBundledJre()
java.lang.String getComment()
java.lang.String getAdditionalAttribute(java.lang.String attributeName, java.lang.String defaultValue)
attributeName
- the name of the additional attributedefaultValue
- the default value to be returned if the attribute does not exist
boolean checkVersionCompatible(java.lang.String version)
version
- the version
|
install4j API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |