|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.core.runtime.PlatformObject | +--org.eclipse.update.core.model.ModelObject | +--org.eclipse.update.core.model.CategoryModel
Feature category definition model object.
This class may be instantiated or subclassed by clients. However, in most cases clients should instead instantiate or subclass the provided concrete implementation of this model.
Category
Constructor Summary | |
CategoryModel()
Creates an uninitialized model object. |
Method Summary | |
boolean |
equals(Object obj)
Compare two category models for equality. |
static Comparator |
getComparator()
Returns a comparator for category models. |
URLEntryModel |
getDescriptionModel()
Retrieve the detailed category description |
String |
getLabel()
Retrieve the displayable label for the category. |
String |
getLabelNonLocalized()
Retrieve the non-localized displayable label for the category. |
String |
getName()
Retrieve the name of the category. |
int |
hashCode()
Compute hash code for category model. |
void |
markReadOnly()
Marks the model object as read-only. |
void |
resolve(URL base,
ResourceBundle bundle)
Resolve the model object. |
void |
setDescriptionModel(URLEntryModel description)
Sets the category description. |
void |
setLabel(String label)
Sets the category displayable label. |
void |
setName(String name)
Sets the category name. |
Methods inherited from class org.eclipse.update.core.model.ModelObject |
arrayTypeFor, arrayTypeFor, assertIsWriteable, isReadOnly, markListReferenceReadOnly, markReferenceReadOnly, resolveListReference, resolveNLString, resolveReference, resolveURL |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
getAdapter |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CategoryModel()
Method Detail |
public String getName()
null
.public String getLabel()
null
.public String getLabelNonLocalized()
null
.public URLEntryModel getDescriptionModel()
null
.public void setLabel(String label)
label
- displayable label, or resource keypublic void setName(String name)
name
- category namepublic void setDescriptionModel(URLEntryModel description)
description
- category descriptionpublic void markReadOnly()
markReadOnly
in class ModelObject
ModelObject.isReadOnly()
public void resolve(URL base, ResourceBundle bundle) throws MalformedURLException
resolve
in class ModelObject
base
- URLbundle
- resource bundle
MalformedURLException
public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public static Comparator getComparator()
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |