E - the extension typepublic class WrappingExtension<E extends Extension> extends AbstractWrappingObject<E> implements Extension
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
overwrites |
FIELD_ALLOWEDNAMESPACE, FIELD_ALLOWEDNAMESPACES, FIELD_AUTHOR, FIELD_AUTHORS, FIELD_CATEGORY, FIELD_DEPENDENCIES, FIELD_DESCRIPTION, FIELD_EXTENSIONFEATURE, FIELD_EXTENSIONFEATURES, FIELD_FEATURE, FIELD_FEATURES, FIELD_ID, FIELD_ISSUEMANAGEMENT, FIELD_LICENSE, FIELD_LICENSES, FIELD_MANAGEDDEPENDENCIES, FIELD_NAME, FIELD_NAMESPACES, FIELD_PROPERTIES, FIELD_REPOSITORIES, FIELD_REPOSITORY, FIELD_SCM, FIELD_SUMMARY, FIELD_TYPE, FIELD_VERSION, FIELD_WEBSITE, IKEYPREFIX| Constructor and Description |
|---|
WrappingExtension(E extension) |
public WrappingExtension(E extension)
extension - the wrapped extensionpublic void setOverwrite(String key, Object value)
key - the key associated to the Extension field (usually found in Extension constants) to overwritevalue - the value to overwritepublic <T> T get(String fieldName)
Extensionpublic ExtensionId getId()
@Deprecated public Collection<String> getFeatures()
ExtensiongetFeatures in interface Extensionpublic Collection<ExtensionId> getExtensionFeatures()
ExtensiongetExtensionFeatures in interface ExtensionExtensionIds also provided by this extension, an empty collection if there is nonepublic ExtensionId getExtensionFeature(String featureId)
ExtensionExtensionId object that matches the passed feature id.getExtensionFeature in interface ExtensionfeatureId - the id of the featureExtensionId associated to the passed idpublic 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<String> getAllowedNamespaces()
getAllowedNamespaces in interface Extensionpublic Collection<ExtensionDependency> getDependencies()
getDependencies in interface Extensionpublic Collection<ExtensionDependency> getManagedDependencies()
ExtensiongetManagedDependencies 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 Collection<ExtensionRepositoryDescriptor> getRepositories()
getRepositories 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)public int compareTo(Extension o)
compareTo in interface Comparable<Extension>Copyright © 2004–2017 XWiki. All rights reserved.