E
- the extension typepublic abstract class AbstractWrappingExtension<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_COMPONENT, FIELD_COMPONENTS, 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
Modifier | Constructor and Description |
---|---|
protected |
AbstractWrappingExtension()
A default constructor allowing to set the wrapped object later.
|
|
AbstractWrappingExtension(E extension) |
public AbstractWrappingExtension(E extension)
extension
- the wrapped extensionprotected AbstractWrappingExtension()
public 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)
Extension
public ExtensionId getId()
@Deprecated public Collection<String> getFeatures()
Extension
getFeatures
in interface Extension
public Collection<ExtensionId> getExtensionFeatures()
Extension
getExtensionFeatures
in interface Extension
ExtensionId
s also provided by this extension, an empty collection if there is nonepublic ExtensionId getExtensionFeature(String featureId)
Extension
ExtensionId
object that matches the passed feature id.getExtensionFeature
in interface Extension
featureId
- the id of the featureExtensionId
associated to the passed idpublic String getType()
public String getName()
public Collection<ExtensionLicense> getLicenses()
getLicenses
in interface Extension
public String getSummary()
getSummary
in interface Extension
public String getDescription()
getDescription
in interface Extension
public String getWebSite()
getWebSite
in interface Extension
public Collection<ExtensionAuthor> getAuthors()
getAuthors
in interface Extension
public Collection<ExtensionComponent> getComponents()
getComponents
in interface Extension
public Collection<String> getAllowedNamespaces()
getAllowedNamespaces
in interface Extension
public Collection<ExtensionDependency> getDependencies()
getDependencies
in interface Extension
public Collection<ExtensionDependency> getManagedDependencies()
Extension
getManagedDependencies
in interface Extension
public ExtensionFile getFile()
Extension
public ExtensionRepository getRepository()
getRepository
in interface Extension
public ExtensionScm getScm()
public ExtensionIssueManagement getIssueManagement()
getIssueManagement
in interface Extension
public String getCategory()
getCategory
in interface Extension
public Collection<ExtensionRepositoryDescriptor> getRepositories()
getRepositories
in interface Extension
public Map<String,Object> getProperties()
Extension
Extension
standard properties.
Theses are generally provided by specific repositories. For example a maven repository will provide group and artifacts ids.
getProperties
in interface Extension
public <T> T getProperty(String key)
getProperty
in interface Extension
T
- type of the property valuekey
- the property keypublic <T> T getProperty(String key, T def)
Extension
getProperty
in interface Extension
T
- 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–2021 XWiki. All rights reserved.