public class SiteCategory
extends java.lang.Object
| Constructor and Description |
|---|
SiteCategory()
Creates an uninitialized model object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCategoryName(java.lang.String categoryName)
Adds the name of a category this bundle belongs to.
|
boolean |
equals(java.lang.Object obj)
Compare two category models for equality.
|
java.lang.String[] |
getCategoryNames()
Returns the names of categories the referenced feature belongs to.
|
static java.util.Comparator<SiteCategory> |
getComparator()
Returns a comparator for category models.
|
java.lang.String |
getDescription()
Retrieve the detailed category description
|
java.lang.String |
getLabel()
Retrieve the non-localized displayable label for the category.
|
java.util.Map<java.util.Locale,java.util.Map<java.lang.String,java.lang.String>> |
getLocalizations()
Gets the localizations for the site as a map from locale
to the set of translated properties for that locale.
|
java.lang.String |
getName()
Retrieve the name of the category.
|
int |
hashCode()
Compute hash code for category model.
|
void |
resolve(java.net.URL base,
java.net.URL bundleURL)
Resolve the model object.
|
void |
setDescription(java.lang.String description)
Sets the category description.
|
void |
setLabel(java.lang.String label)
Sets the category displayable label.
|
void |
setLocalizations(java.util.Map<java.util.Locale,java.util.Map<java.lang.String,java.lang.String>> localizations)
Sets the localizations for the site as a map from locale
to the set of translated properties for that locale.
|
void |
setName(java.lang.String name)
Sets the category name.
|
public SiteCategory()
public static java.util.Comparator<SiteCategory> getComparator()
public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(Object)public java.lang.String getDescription()
null.public java.lang.String getLabel()
null.public java.util.Map<java.util.Locale,java.util.Map<java.lang.String,java.lang.String>> getLocalizations()
public java.lang.String getName()
null.public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public void resolve(java.net.URL base,
java.net.URL bundleURL)
throws java.net.MalformedURLException
base - URLbundleURL - resource bundle URLjava.net.MalformedURLExceptionpublic void setDescription(java.lang.String description)
description - category descriptionpublic void setLabel(java.lang.String label)
label - displayable label, or resource keypublic void setLocalizations(java.util.Map<java.util.Locale,java.util.Map<java.lang.String,java.lang.String>> localizations)
localizations - as a map from locale to property setpublic void setName(java.lang.String name)
name - category namepublic void addCategoryName(java.lang.String categoryName)
categoryName - category namepublic java.lang.String[] getCategoryNames()