Class DescriptionModel
java.lang.Object
org.libreoffice.ide.eclipse.core.model.description.DescriptionModel
- All Implemented Interfaces:
IModel
Class representing the description.xml file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDescription(Locale locale, String value) Add or update a description.voidaddDisplayName(Locale locale, String value) Add or update a display name.voidaddLicense(Locale locale, String value) Add or update a license.voidaddListener(IModelDataListener listener) Add a model listener.voidaddPublisherInfo(Locale locale, PublisherInfos value) Add or update a publisherInfo.voidaddReleaseNote(Locale locale, String value) Add or update a release note.voidaddUpdateInfo(String pValue) Add or update a updateInfos.protected voidTells everyone that the model has changed.protected voidTells everyone that the model has been saved.getId()booleanbooleanisDirty()booleanvoidremoveDescription(Locale locale) Remove a description.voidremoveDisplayName(Locale locale) Remove a display name.voidremoveLicense(Locale locale) Remove a license.voidremoveListener(IModelDataListener listener) Remove a model listener.voidremovePublisherInfo(Locale locale) Remove a publisherInfo.voidremoveReleaseNote(Locale locale) Remove a release note.voidremoveUpdateInfo(String pValue) Remove a updateInfos.voidreplaceUpdateInfo(int index, String value) Replace an existing update info.voidserialize(OutputStream out) Serializes the data in XML to an output stream.voidsetAcceptByUser(boolean acceptByUser) voidsetDefaultIcon(String defaultIcon) voidvoidvoidvoidvoidsetPlatforms(String pPlatforms) voidsetSuppressOnUpdate(boolean pSuppressOnUpdate) voidsetSuspendEvent(boolean pSuspend) voidsetVersion(String pVersion)
-
Constructor Details
-
DescriptionModel
public DescriptionModel()Default constructor.
-
-
Method Details
-
addListener
Add a model listener.- Specified by:
addListenerin interfaceIModel- Parameters:
listener- the listener to add
-
removeListener
Remove a model listener.- Specified by:
removeListenerin interfaceIModel- Parameters:
listener- the listener to remove
-
isDirty
public boolean isDirty() -
setSuspendEvent
public void setSuspendEvent(boolean pSuspend) - Specified by:
setSuspendEventin interfaceIModel- Parameters:
pSuspend-trueto suspend the events for the model
-
getAllLocales
- Returns:
- all the locales defined in the different parts of the model.
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getVersion
- Returns:
- the version
-
setVersion
- Parameters:
pVersion- the version to set
-
getDisplayNames
- Returns:
- the displayNames
-
addDisplayName
Add or update a display name.- Parameters:
locale- the locale for the display name to add / updatevalue- the value to add / update.
-
removeDisplayName
Remove a display name.- Parameters:
locale- the locale of the display name to remove
-
getMinOOo
- Returns:
- the minOOo
-
setMinOOo
- Parameters:
minOOo- the minOOo to set
-
getMaxOOo
- Returns:
- the maxOOo
-
setMaxOOo
- Parameters:
maxOOo- the maxOOo to set
-
getPlatforms
- Returns:
- the platforms
-
setPlatforms
- Parameters:
pPlatforms- the platforms to set
-
getDefaultIcon
- Returns:
- the defaultIcon
-
setDefaultIcon
- Parameters:
defaultIcon- the defaultIcon to set
-
getHCIcon
- Returns:
- the hCIcon
-
setHCIcon
- Parameters:
hcIcon- the hCIcon to set
-
getDescriptions
- Returns:
- the descriptions
-
addDescription
Add or update a description.- Parameters:
locale- the locale for the description to add / updatevalue- the value to add / update.
-
removeDescription
Remove a description.- Parameters:
locale- the locale of the description to remove
-
getReleaseNotes
- Returns:
- the releaseNotes
-
addReleaseNote
Add or update a release note.- Parameters:
locale- the locale for the release note to add / updatevalue- the value to add / update.
-
removeReleaseNote
Remove a release note.- Parameters:
locale- the locale of the release note to remove
-
getUpdateInfos
- Returns:
- the updateInfos
-
addUpdateInfo
Add or update a updateInfos.- Parameters:
pValue- the value to add / update.
-
replaceUpdateInfo
Replace an existing update info.- Parameters:
index- the index to changevalue- the new value
-
removeUpdateInfo
Remove a updateInfos.- Parameters:
pValue- the value to remove
-
isAcceptByUser
public boolean isAcceptByUser()- Returns:
- the acceptByUser
-
setAcceptByUser
public void setAcceptByUser(boolean acceptByUser) - Parameters:
acceptByUser- the acceptByUser to set
-
isSuppressOnUpdate
public boolean isSuppressOnUpdate()- Returns:
- the suppressOnUpdate
-
setSuppressOnUpdate
public void setSuppressOnUpdate(boolean pSuppressOnUpdate) - Parameters:
pSuppressOnUpdate- the suppressOnUpdate to set
-
getLicenses
- Returns:
- the licenses
-
addLicense
Add or update a license.- Parameters:
locale- the locale for the license to add / updatevalue- the value to add / update.
-
removeLicense
Remove a license.- Parameters:
locale- the locale of the license to remove
-
getPublisherInfos
- Returns:
- the publisherInfos
-
addPublisherInfo
Add or update a publisherInfo.- Parameters:
locale- the locale for the publisherInfo to add / updatevalue- the value to add / update.
-
removePublisherInfo
Remove a publisherInfo.- Parameters:
locale- the locale of the publisherInfo to remove
-
serialize
Serializes the data in XML to an output stream.- Parameters:
out- the output stream where to write the data
-
fireModelChanged
protected void fireModelChanged()Tells everyone that the model has changed. -
fireModelSaved
protected void fireModelSaved()Tells everyone that the model has been saved.
-