public class CategoryModel extends ModelObject
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.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Category| Constructor and Description |
|---|
CategoryModel()
Creates an uninitialized model object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected String |
getPropertyName()
Method getPropertyName.
|
int |
hashCode()
Compute hash code for category model.
|
void |
markReadOnly()
Marks the model object as read-only.
|
void |
resolve(URL base,
URL bundleURL)
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.
|
arrayTypeFor, arrayTypeFor, assertIsWriteable, getResourceBundle, isReadOnly, markListReferenceReadOnly, markReferenceReadOnly, resolveListReference, resolveNLString, resolveReference, resolveURLgetAdapterpublic CategoryModel()
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 ModelObjectModelObject.isReadOnly()public void resolve(URL base, URL bundleURL) throws MalformedURLException
resolve in class ModelObjectbase - URLbundleURL - resource bundle URLMalformedURLExceptionpublic boolean equals(Object obj)
equals in class ObjectObject.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public static Comparator getComparator()
protected String getPropertyName()
ModelObjectgetPropertyName in class ModelObjectModelObject.getPropertyName()Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.