|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.jjar.repository.RepositoryXML
public class RepositoryXML
A Repository holds one or several Stores.
Field Summary |
---|
Fields inherited from interface cern.jjar.repository.Repository |
---|
REPOSITORY_FILE_NAME |
Constructor Summary | |
---|---|
RepositoryXML()
|
|
RepositoryXML(String defaultVersion)
|
Method Summary | |
---|---|
void |
addStore(RepositoryStore repositoryXMLStore)
|
Product[] |
computeObsoleteProducts(Product product)
Computes the obsolete versions of a certain product |
Product[] |
computeObsoleteVersionsForProduct(Product product)
Computes a list of all obsolete versions for a given product |
Dependency[] |
getDependencies(Dependency[] dependenciesToResolve,
boolean excludeTargets,
Version defaultVersion)
Returns array with all dependencies of given dependencies. |
Dependency[] |
getDependencies(Dependency dependencyToResolve,
boolean excludeTarget,
Version defaultVersion)
Returns array with all dependencies of given dependency. |
Document |
getDocument()
Returns the parsed document of the repository descriptor |
Product |
getProduct(String productName,
Version version)
Returns Product object with given name and version or null if not found in the repository. |
String |
getProductFilePath(String productName,
Version version)
Return URL of product's jar or null if product does not exist or product does not contain jar. |
URL |
getProductFileUrl(String productName,
Version version)
Return URL of product's jar or null if product does not exist or product does not contain jar. |
URL |
getProductionDescriptorRootDirURL()
Returns the directory of production repository |
RepositoryStore |
getProductionStore()
Returns the production repository store as defined by method @link RepositoryStore#isProduction() |
static void |
main(String[] args)
|
void |
printOut(Collection list)
|
void |
printOut(Object[] list)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryXML(String defaultVersion)
public RepositoryXML()
Method Detail |
---|
public void addStore(RepositoryStore repositoryXMLStore)
public RepositoryStore getProductionStore()
Repository
getProductionStore
in interface Repository
public Dependency[] getDependencies(Dependency dependencyToResolve, boolean excludeTarget, Version defaultVersion)
Repository
getDependencies
in interface Repository
dependencyToResolve
- the dependency to resolveexcludeTarget
- whether or not to include the target passed in parameterdefaultVersion
- the default version to get is no version is specified
public Dependency[] getDependencies(Dependency[] dependenciesToResolve, boolean excludeTargets, Version defaultVersion)
Repository
getDependencies
in interface Repository
dependenciesToResolve
- the array of dependencies to resolveexcludeTargets
- whether or not to include the targets passed in parameterdefaultVersion
- the default version to get is no version is specified
public URL getProductFileUrl(String productName, Version version)
getProductFileUrl
in interface Repository
productName
- the name of the product to getversion
- the version of the product to get
public String getProductFilePath(String productName, Version version)
getProductFilePath
in interface Repository
productName
- the name of the product to getversion
- the version of the product to get
public Product getProduct(String productName, Version version)
getProduct
in interface Repository
productName
- the name of the product to getversion
- the version of the product to get
public URL getProductionDescriptorRootDirURL()
Repository
getProductionDescriptorRootDirURL
in interface Repository
public Document getDocument()
Repository
getDocument
in interface Repository
public void printOut(Object[] list)
public void printOut(Collection list)
public Product[] computeObsoleteVersionsForProduct(Product product)
Repository
computeObsoleteVersionsForProduct
in interface Repository
product
- the product for which to search for obsolete products
public Product[] computeObsoleteProducts(Product product)
Repository
computeObsoleteProducts
in interface Repository
product
- the product to be cleaned
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |