Class Repository
java.lang.Object
org.fedoraproject.xmvn.config.Repository
- All Implemented Interfaces:
Serializable, Cloneable
Artifact repository.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String key, String value) Method addProperty.voidaddStereotype(Stereotype stereotype) Method addStereotype.clone()Method clone.Get arbitrary XML used to configure structure of the repository.Get a boolean expression describing which artifacts can be stored in this repository.getId()Get unique string identifying this repository.Method getProperties.Method getStereotypes.getType()Get role hint of Plexus component implementing the repository.voidremoveStereotype(Stereotype stereotype) Method removeStereotype.voidsetConfiguration(Object configuration) Set arbitrary XML used to configure structure of the repository.voidSet a boolean expression describing which artifacts can be stored in this repository.voidSet unique string identifying this repository.voidsetProperties(Properties properties) Set properties associated with this repository.voidsetStereotypes(List<Stereotype> stereotypes) Set list of artifact types that can be stored in this repository.voidSet role hint of Plexus component implementing the repository.
-
Constructor Details
-
Repository
public Repository()
-
-
Method Details
-
addProperty
-
addStereotype
Method addStereotype.- Parameters:
stereotype- a stereotype object.
-
clone
-
getConfiguration
Get arbitrary XML used to configure structure of the repository. Configuration can be freely used by the implementation, so their exact meaning depends on repository type. See documentation for repository types to see the format of supported configuration (if any).- Returns:
- Object
-
getFilter
Get a boolean expression describing which artifacts can be stored in this repository.- Returns:
- Object
-
getId
-
getProperties
-
getStereotypes
-
getType
Get role hint of Plexus component implementing the repository.- Returns:
- String
-
removeStereotype
Method removeStereotype.- Parameters:
stereotype- a stereotype object.
-
setConfiguration
Set arbitrary XML used to configure structure of the repository. Configuration can be freely used by the implementation, so their exact meaning depends on repository type. See documentation for repository types to see the format of supported configuration (if any).- Parameters:
configuration- a configuration object.
-
setFilter
Set a boolean expression describing which artifacts can be stored in this repository.- Parameters:
filter- a filter object.
-
setId
Set unique string identifying this repository.- Parameters:
id- a id object.
-
setProperties
Set properties associated with this repository. Properties can be freely used by the implementation, so their exact meaning depends on repository type. See documentation for repository types to see list of supported properties.- Parameters:
properties- a properties object.
-
setStereotypes
Set list of artifact types that can be stored in this repository. Empty list means that this repository can store any artifact type.- Parameters:
stereotypes- a stereotypes object.
-
setType
Set role hint of Plexus component implementing the repository.- Parameters:
type- a type object.
-