public abstract class AbstractRatingExtension extends AbstractExtension implements RatingExtension
RatingExtension implementations.| Modifier and Type | Field and Description |
|---|---|
protected ExtensionRating |
rating |
authors, category, dependencies, description, features, file, id, issueManagement, licenses, name, properties, repositories, repository, scm, summary, type, websiteFIELD_AVERAGE_VOTE, FIELD_TOTAL_VOTESFIELD_AUTHOR, FIELD_AUTHORS, FIELD_CATEGORY, FIELD_DESCRIPTION, FIELD_FEATURE, FIELD_FEATURES, FIELD_ID, FIELD_LICENSE, FIELD_LICENSES, FIELD_NAME, FIELD_REPOSITORIES, FIELD_REPOSITORY, FIELD_SCM, FIELD_SUMMARY, FIELD_TYPE, FIELD_VERSION, FIELD_WEBSITE| Constructor and Description |
|---|
AbstractRatingExtension(ExtensionRepository repository,
Extension extension)
Create new extension descriptor by copying provided one.
|
AbstractRatingExtension(ExtensionRepository repository,
ExtensionId id,
String type) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String fieldName)
Get an extension field by name.
|
ExtensionRating |
getRating() |
void |
setRating(ExtensionRating rating) |
addAuthor, addDependency, addFeature, addLicense, addRepository, equals, getAuthors, getCategory, getDependencies, getDescription, getFeatures, getFile, getId, getIssueManagement, getLicenses, getName, getProperties, getProperty, getProperty, getRepositories, getRepository, getScm, getSummary, getType, getWebSite, hashCode, putProperty, set, setAuthors, setCategory, setDependencies, setDescription, setFeatures, setFile, setId, setIssueManagement, setLicenses, setName, setProperties, setRepositories, setRepository, setScm, setSummary, setType, setWebsite, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAuthors, getCategory, getDependencies, getDescription, getFeatures, getFile, getId, getIssueManagement, getLicenses, getName, getProperties, getProperty, getProperty, getRepositories, getRepository, getScm, getSummary, getType, getWebSiteprotected ExtensionRating rating
getRating()public AbstractRatingExtension(ExtensionRepository repository, ExtensionId id, String type)
repository - the repository where this extension comes fromid - the extension identifiertype - the extension typepublic AbstractRatingExtension(ExtensionRepository repository, Extension extension)
repository - the repository where this extension comes fromextension - the extension to copypublic ExtensionRating getRating()
public void setRating(ExtensionRating rating)
rating - an extension's ratingpublic <T> T get(String fieldName)
AbstractExtensionget in interface Extensionget in class AbstractExtensionT - type of the field valuefieldName - the field name;Copyright © 2004–2015 XWiki. All rights reserved.