]>
git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.api/src/org/argeo/slc/NameVersion.java
4 * Abstraction of a name / version pair, typically used as coordinates for a
5 * software module either deployed or packaged as an archive.
7 public interface NameVersion
{
8 /** The name of the component. */
11 /** The version of the component. */
15 * The forward compatible branch of this version, by default it is
18 default String
getBranch() {
19 String
[] parts
= getVersion().split("\\.");
21 throw new IllegalStateException("Version " + getVersion() + " cannot be interpreted as branch.");
22 return parts
[0] + "." + parts
[1];