|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.jjar.repository.RepositoryXMLStore
public class RepositoryXMLStore
Field Summary | |
---|---|
static String |
FILE
|
JJarParser |
parser
|
Constructor Summary | |
---|---|
RepositoryXMLStore(String repositoryDir)
|
Method Summary | |
---|---|
String |
buildProductFileRelativePath(Product p)
|
Document |
getDocument()
Returns the parsed document |
MultiVersionsProduct |
getProduct(String productName)
Returns all versions for a given project |
Product |
getProduct(String productName,
Version v)
Returns product with given name and version (version can be both numerical or linked). |
String |
getProductFilePath(Product product)
Returns path of jar for given product. |
URL |
getProductFileUrl(Product product)
Returns URL of jar for given product and version. |
MultiVersionsProduct[] |
getProducts()
Returns all products in this store |
URL |
getStoreRootDirURL()
Returns the directory to the production repository |
boolean |
isProduction()
Returns true if the store is production |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FILE
public JJarParser parser
Constructor Detail |
---|
public RepositoryXMLStore(String repositoryDir) throws IOException
IOException
Method Detail |
---|
public MultiVersionsProduct[] getProducts()
RepositoryStore
getProducts
in interface RepositoryStore
public Product getProduct(String productName, Version v)
RepositoryStore
getProduct
in interface RepositoryStore
productName
- the name of the product to getv
- the version of the product to get
public MultiVersionsProduct getProduct(String productName)
RepositoryStore
getProduct
in interface RepositoryStore
productName
- the productname for which to return all versions
public URL getProductFileUrl(Product product)
RepositoryStore
getProductFileUrl
in interface RepositoryStore
product
- the product the url is to be got for
public String getProductFilePath(Product product)
RepositoryStore
getProductFilePath
in interface RepositoryStore
product
- the product the path is to be got for
public String buildProductFileRelativePath(Product p)
public boolean isProduction()
RepositoryStore
isProduction
in interface RepositoryStore
public Document getDocument()
RepositoryStore
getDocument
in interface RepositoryStore
public URL getStoreRootDirURL()
RepositoryStore
getStoreRootDirURL
in interface RepositoryStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |