|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openoffice.ide.eclipse.core.model.description.DescriptionModel
public class DescriptionModel
Class representing the description.xml file.
Constructor Summary | |
---|---|
DescriptionModel()
Default constructor. |
Method Summary | |
---|---|
void |
addDescription(java.util.Locale pLocale,
java.lang.String pValue)
Add or update a description. |
void |
addDisplayName(java.util.Locale pLocale,
java.lang.String pValue)
Add or update a display name. |
void |
addLicense(java.util.Locale pLocale,
java.lang.String pValue)
Add or update a license. |
void |
addListener(IModelChangedListener pListener)
Add a model listener. |
void |
addPublisherInfo(java.util.Locale pLocale,
PublisherInfos pValue)
Add or update a publisherInfo. |
void |
addReleaseNote(java.util.Locale pLocale,
java.lang.String pValue)
Add or update a release note. |
void |
addUpdateInfo(java.lang.String pValue)
Add or update a updateInfos. |
protected void |
fireModelChanged()
Tells everyone that the model has changed. |
protected void |
fireModelSaved()
Tells everyone that the model has been saved. |
java.util.ArrayList<java.util.Locale> |
getAllLocales()
|
java.lang.String |
getDefaultIcon()
|
java.util.HashMap<java.util.Locale,java.lang.String> |
getDescriptions()
|
java.util.HashMap<java.util.Locale,java.lang.String> |
getDisplayNames()
|
java.lang.String |
getHCIcon()
|
java.lang.String |
getId()
|
java.util.HashMap<java.util.Locale,java.lang.String> |
getLicenses()
|
java.lang.String |
getMaxOOo()
|
java.lang.String |
getMinOOo()
|
java.lang.String |
getPlatforms()
|
java.util.HashMap<java.util.Locale,PublisherInfos> |
getPublisherInfos()
|
java.util.HashMap<java.util.Locale,java.lang.String> |
getReleaseNotes()
|
java.util.ArrayList<java.lang.String> |
getUpdateInfos()
|
java.lang.String |
getVersion()
|
boolean |
isAcceptByUser()
|
boolean |
isDirty()
|
boolean |
isSuppressOnUpdate()
|
void |
removeDescription(java.util.Locale pLocale)
Remove a description. |
void |
removeDisplayName(java.util.Locale pLocale)
Remove a display name. |
void |
removeLicense(java.util.Locale pLocale)
Remove a license. |
void |
removeListener(IModelChangedListener pListener)
Remove a model listener. |
void |
removePublisherInfo(java.util.Locale pLocale)
Remove a publisherInfo. |
void |
removeReleaseNote(java.util.Locale pLocale)
Remove a release note. |
void |
removeUpdateInfo(java.lang.String pValue)
Remove a updateInfos. |
void |
replaceUpdateInfo(int pIndex,
java.lang.String pValue)
Replace an existing update info. |
void |
serialize(java.io.OutputStream pOut)
Serializes the data in XML to an output stream. |
void |
setAcceptByUser(boolean pAcceptByUser)
|
void |
setDefaultIcon(java.lang.String pDefaultIcon)
|
void |
setHCIcon(java.lang.String pHCIcon)
|
void |
setId(java.lang.String pId)
|
void |
setMaxOOo(java.lang.String pMaxOOo)
|
void |
setMinOOo(java.lang.String pMinOOo)
|
void |
setPlatforms(java.lang.String pPlatforms)
|
void |
setSuppressOnUpdate(boolean pSuppressOnUpdate)
|
void |
setSuspendEvent(boolean pSuspend)
|
void |
setVersion(java.lang.String pVersion)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DescriptionModel()
Method Detail |
---|
public void addListener(IModelChangedListener pListener)
addListener
in interface IModel
pListener
- the listener to addpublic void removeListener(IModelChangedListener pListener)
removeListener
in interface IModel
pListener
- the listener to removepublic boolean isDirty()
isDirty
in interface IModel
public void setSuspendEvent(boolean pSuspend)
setSuspendEvent
in interface IModel
pSuspend
- true
to suspend the events for the modelpublic java.util.ArrayList<java.util.Locale> getAllLocales()
public java.lang.String getId()
public void setId(java.lang.String pId)
pId
- the id to setpublic java.lang.String getVersion()
public void setVersion(java.lang.String pVersion)
pVersion
- the version to setpublic java.util.HashMap<java.util.Locale,java.lang.String> getDisplayNames()
public void addDisplayName(java.util.Locale pLocale, java.lang.String pValue)
pLocale
- the locale for the display name to add / updatepValue
- the value to add / update.public void removeDisplayName(java.util.Locale pLocale)
pLocale
- the locale of the display name to removepublic java.lang.String getMinOOo()
public void setMinOOo(java.lang.String pMinOOo)
pMinOOo
- the minOOo to setpublic java.lang.String getMaxOOo()
public void setMaxOOo(java.lang.String pMaxOOo)
pMaxOOo
- the maxOOo to setpublic java.lang.String getPlatforms()
public void setPlatforms(java.lang.String pPlatforms)
pPlatforms
- the platforms to setpublic java.lang.String getDefaultIcon()
public void setDefaultIcon(java.lang.String pDefaultIcon)
pDefaultIcon
- the defaultIcon to setpublic java.lang.String getHCIcon()
public void setHCIcon(java.lang.String pHCIcon)
pHCIcon
- the hCIcon to setpublic java.util.HashMap<java.util.Locale,java.lang.String> getDescriptions()
public void addDescription(java.util.Locale pLocale, java.lang.String pValue)
pLocale
- the locale for the description to add / updatepValue
- the value to add / update.public void removeDescription(java.util.Locale pLocale)
pLocale
- the locale of the description to removepublic java.util.HashMap<java.util.Locale,java.lang.String> getReleaseNotes()
public void addReleaseNote(java.util.Locale pLocale, java.lang.String pValue)
pLocale
- the locale for the release note to add / updatepValue
- the value to add / update.public void removeReleaseNote(java.util.Locale pLocale)
pLocale
- the locale of the release note to removepublic java.util.ArrayList<java.lang.String> getUpdateInfos()
public void addUpdateInfo(java.lang.String pValue)
pValue
- the value to add / update.public void replaceUpdateInfo(int pIndex, java.lang.String pValue)
pIndex
- the index to changepValue
- the new valuepublic void removeUpdateInfo(java.lang.String pValue)
pValue
- the value to removepublic boolean isAcceptByUser()
public void setAcceptByUser(boolean pAcceptByUser)
pAcceptByUser
- the acceptByUser to setpublic boolean isSuppressOnUpdate()
public void setSuppressOnUpdate(boolean pSuppressOnUpdate)
pSuppressOnUpdate
- the suppressOnUpdate to setpublic java.util.HashMap<java.util.Locale,java.lang.String> getLicenses()
public void addLicense(java.util.Locale pLocale, java.lang.String pValue)
pLocale
- the locale for the license to add / updatepValue
- the value to add / update.public void removeLicense(java.util.Locale pLocale)
pLocale
- the locale of the license to removepublic java.util.HashMap<java.util.Locale,PublisherInfos> getPublisherInfos()
public void addPublisherInfo(java.util.Locale pLocale, PublisherInfos pValue)
pLocale
- the locale for the publisherInfo to add / updatepValue
- the value to add / update.public void removePublisherInfo(java.util.Locale pLocale)
pLocale
- the locale of the publisherInfo to removepublic void serialize(java.io.OutputStream pOut)
pOut
- the output stream where to write the dataprotected void fireModelChanged()
protected void fireModelSaved()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |