|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.extension.wrap.AbstractWrappingObject<E>
org.xwiki.extension.wrap.WrappingExtension<E>
E - the extension typepublic class WrappingExtension<E extends Extension>
Wrap an extension.
| Constructor Summary | |
|---|---|
WrappingExtension(E extension)
|
|
| Method Summary | ||
|---|---|---|
Collection<ExtensionAuthor> |
getAuthors()
|
|
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()
|
|
Collection<ExtensionLicense> |
getLicenses()
|
|
String |
getName()
|
|
Map<String,Object> |
getProperties()
Extends Extension standard properties. |
|
Object |
getProperty(String key)
|
|
|
getProperty(String key,
T def)
Get a property. |
|
ExtensionRepository |
getRepository()
|
|
String |
getSummary()
|
|
String |
getType()
|
|
String |
getWebSite()
|
|
| Methods inherited from class org.xwiki.extension.wrap.AbstractWrappingObject |
|---|
equals, getWrapped, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WrappingExtension(E extension)
extension - the wrapped extension| Method Detail |
|---|
public ExtensionId getId()
getId in interface Extensionpublic Collection<String> getFeatures()
Extension
getFeatures in interface Extensionpublic String getType()
getType in interface Extensionpublic String getName()
getName in interface Extensionpublic 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()
Extension
getFile in interface Extensionpublic ExtensionRepository getRepository()
getRepository 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 Object getProperty(String key)
getProperty in interface Extensionkey - the property key
public <T> T getProperty(String key,
T def)
Extension
getProperty in interface ExtensionT - type of the property valuekey - the property keydef - the value to return if no property is associated to the provided key
default of the property is not foundExtension.getProperty(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||