Package org.fedoraproject.xmvn.config
Class Repository
- java.lang.Object
-
- org.fedoraproject.xmvn.config.Repository
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class Repository extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable
Artifact repository.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Repository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(java.lang.String key, java.lang.String value)
Method addProperty.void
addStereotype(Stereotype stereotype)
Method addStereotype.Repository
clone()
Method clone.java.lang.Object
getConfiguration()
Get arbitrary XML used to configure structure of the repository.java.lang.Object
getFilter()
Get a boolean expression describing which artifacts can be stored in this repository.java.lang.String
getId()
Get unique string identifying this repository.java.util.Properties
getProperties()
Method getProperties.java.util.List<Stereotype>
getStereotypes()
Method getStereotypes.java.lang.String
getType()
Get role hint of Plexus component implementing the repository.void
removeStereotype(Stereotype stereotype)
Method removeStereotype.void
setConfiguration(java.lang.Object configuration)
Set arbitrary XML used to configure structure of the repository.void
setFilter(java.lang.Object filter)
Set a boolean expression describing which artifacts can be stored in this repository.void
setId(java.lang.String id)
Set unique string identifying this repository.void
setProperties(java.util.Properties properties)
Set properties associated with this repository.void
setStereotypes(java.util.List<Stereotype> stereotypes)
Set list of artifact types that can be stored in this repository.void
setType(java.lang.String type)
Set role hint of Plexus component implementing the repository.
-
-
-
Method Detail
-
addProperty
public void addProperty(java.lang.String key, java.lang.String value)
Method addProperty.- Parameters:
key
-value
-
-
addStereotype
public void addStereotype(Stereotype stereotype)
Method addStereotype.- Parameters:
stereotype
-
-
clone
public Repository clone()
Method clone.- Overrides:
clone
in classjava.lang.Object
- Returns:
- Repository
-
getConfiguration
public java.lang.Object 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
public java.lang.Object getFilter()
Get a boolean expression describing which artifacts can be stored in this repository.- Returns:
- Object
-
getId
public java.lang.String getId()
Get unique string identifying this repository.- Returns:
- String
-
getProperties
public java.util.Properties getProperties()
Method getProperties.- Returns:
- Properties
-
getStereotypes
public java.util.List<Stereotype> getStereotypes()
Method getStereotypes.- Returns:
- List
-
getType
public java.lang.String getType()
Get role hint of Plexus component implementing the repository.- Returns:
- String
-
removeStereotype
public void removeStereotype(Stereotype stereotype)
Method removeStereotype.- Parameters:
stereotype
-
-
setConfiguration
public void setConfiguration(java.lang.Object configuration)
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
-
-
setFilter
public void setFilter(java.lang.Object filter)
Set a boolean expression describing which artifacts can be stored in this repository.- Parameters:
filter
-
-
setId
public void setId(java.lang.String id)
Set unique string identifying this repository.- Parameters:
id
-
-
setProperties
public void setProperties(java.util.Properties properties)
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
-
-
setStereotypes
public void setStereotypes(java.util.List<Stereotype> stereotypes)
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
-
-
setType
public void setType(java.lang.String type)
Set role hint of Plexus component implementing the repository.- Parameters:
type
-
-
-