01: package org.antmod.descriptor;
02:
03: /**
04: * Represents a storage location for release descriptors.
05: *
06: * @author Klaas Waslander
07: */
08: public interface DescriptorStore {
09:
10: /**
11: * Reads the release descriptor from the store.
12: * @param name The name of the release descriptor.
13: * @param versionString The version of the release, for example "dev" or "2.1"
14: * @return The appropriate release descriptor information
15: */
16: public ReleaseDescriptor getReleaseDescriptor(String name,
17: String versionString);
18:
19: /**
20: * Reads a release descriptor from the store, assuming the given name and version
21: * of the release descriptor name have been separated using a "-".
22: * @param nameAndVersion Last "-" separates name and version
23: * @return The appropriate release descriptor information
24: */
25: public ReleaseDescriptor getReleaseDescriptor(String nameAndVersion);
26:
27: }
|