E - the extension typepublic class WrappingExtension<E extends Extension> extends AbstractWrappingObject<E> implements Extension
FIELD_AUTHOR, FIELD_AUTHORS, FIELD_CATEGORY, FIELD_DESCRIPTION, FIELD_FEATURE, FIELD_FEATURES, FIELD_ID, FIELD_LICENSE, FIELD_LICENSES, FIELD_NAME, FIELD_REPOSITORY, FIELD_SCM, FIELD_SUMMARY, FIELD_TYPE, FIELD_VERSION, FIELD_WEBSITE| Constructor and Description |
|---|
WrappingExtension(E extension) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String fieldName)
Get an extension field (name, summary, id, etc.) by name.
|
Collection<ExtensionAuthor> |
getAuthors() |
String |
getCategory() |
Collection<? extends ExtensionDependency> |
getDependencies() |
String |
getDescription() |
Collection<String> |
getFeatures()
The idea is to indicate in an extension a list of provided "functionalities".
|
ExtensionFile |
getFile()
Return extension file descriptor.
|
ExtensionId |
getId() |
ExtensionIssueManagement |
getIssueManagement() |
Collection<ExtensionLicense> |
getLicenses() |
String |
getName() |
Map<String,Object> |
getProperties()
Extends
Extension standard properties. |
<T> T |
getProperty(String key) |
<T> T |
getProperty(String key,
T def)
Get a property.
|
ExtensionRepository |
getRepository() |
ExtensionScm |
getScm() |
String |
getSummary() |
String |
getType() |
String |
getWebSite() |
equals, getWrapped, hashCode, toStringpublic WrappingExtension(E extension)
extension - the wrapped extensionpublic <T> T get(String fieldName)
Extensionpublic ExtensionId getId()
public Collection<String> getFeatures()
ExtensiongetFeatures in interface Extensionpublic String getType()
public String getName()
public Collection<ExtensionLicense> getLicenses()
getLicenses in interface Extensionpublic String getSummary()
getSummary in interface Extensionpublic String getDescription()
getDescription in interface Extensionpublic String getWebSite()
getWebSite in interface Extensionpublic Collection<ExtensionAuthor> getAuthors()
getAuthors in interface Extensionpublic Collection<? extends ExtensionDependency> getDependencies()
getDependencies in interface Extensionpublic ExtensionFile getFile()
Extensionpublic ExtensionRepository getRepository()
getRepository in interface Extensionpublic ExtensionScm getScm()
public ExtensionIssueManagement getIssueManagement()
getIssueManagement in interface Extensionpublic String getCategory()
getCategory in interface Extensionpublic Map<String,Object> getProperties()
ExtensionExtension standard properties.
Theses are generally provided by specific repositories. For example a maven repository will provide group and artifacts ids.
getProperties in interface Extensionpublic <T> T getProperty(String key)
getProperty in interface ExtensionT - type of the property valuekey - the property keypublic <T> T getProperty(String key, T def)
ExtensiongetProperty in interface ExtensionT - type of the property valuekey - the property keydef - the value to return if no property is associated to the provided keydefault of the property is not foundExtension.getProperty(String)Copyright © 2004–2015 XWiki. All rights reserved.