public class DefaultExtensionRepositoryDescriptor extends Object implements ExtensionRepositoryDescriptor
ExtensionRepositoryDescriptor
.Constructor and Description |
---|
DefaultExtensionRepositoryDescriptor(ExtensionRepositoryDescriptor descriptor) |
DefaultExtensionRepositoryDescriptor(String id)
Constructor to use only for "virtual" repositories having no storage like the ExtensionRepositoryManager.
|
DefaultExtensionRepositoryDescriptor(String id,
String type,
URI uri) |
DefaultExtensionRepositoryDescriptor(String id,
String type,
URI uri,
Map<String,String> properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getId() |
Map<String,String> |
getProperties()
Extends
ExtensionRepositoryDescriptor standard properties. |
String |
getProperty(String key) |
String |
getType() |
URI |
getURI() |
int |
hashCode() |
void |
putProperty(String key,
String value)
Set a property.
|
void |
setProperties(Map<String,String> properties)
Replace existing properties with provided properties.
|
String |
toString() |
public DefaultExtensionRepositoryDescriptor(ExtensionRepositoryDescriptor descriptor)
descriptor
- the identifier to clonepublic DefaultExtensionRepositoryDescriptor(String id)
id
- the unique identifierpublic DefaultExtensionRepositoryDescriptor(String id, String type, URI uri)
id
- the unique identifiertype
- the repository type (maven, xwiki, etc.)uri
- the repository address@Unstable public DefaultExtensionRepositoryDescriptor(String id, String type, URI uri, Map<String,String> properties)
id
- the unique identifiertype
- the repository type (maven, xwiki, etc.)uri
- the repository addressproperties
- the propertiespublic String getId()
getId
in interface ExtensionRepositoryDescriptor
public String getType()
getType
in interface ExtensionRepositoryDescriptor
public URI getURI()
getURI
in interface ExtensionRepositoryDescriptor
public Map<String,String> getProperties()
ExtensionRepositoryDescriptor
ExtensionRepositoryDescriptor
standard properties.getProperties
in interface ExtensionRepositoryDescriptor
public String getProperty(String key)
getProperty
in interface ExtensionRepositoryDescriptor
key
- the property keypublic void putProperty(String key, String value)
key
- the property keyvalue
- the property valuegetProperty(String)
public void setProperties(Map<String,String> properties)
properties
- the propertiesCopyright © 2004–2021 XWiki. All rights reserved.