KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > jayasoft > ivy > resolver > ResolvedResource


1 /*
2  * This file is subject to the licence found in LICENCE.TXT in the root directory of the project.
3  * Copyright Jayasoft 2005 - All rights reserved
4  *
5  * #SNAPSHOT#
6  */

7 package fr.jayasoft.ivy.resolver;
8
9 import fr.jayasoft.ivy.ArtifactInfo;
10 import fr.jayasoft.ivy.ResolvedModuleRevision;
11 import fr.jayasoft.ivy.repository.Resource;
12
13 public class ResolvedResource implements ArtifactInfo {
14     private Resource _res;
15     private String JavaDoc _rev;
16     
17     public ResolvedResource(Resource res, String JavaDoc rev) {
18         _res = res;
19         _rev = rev;
20     }
21     public String JavaDoc getRevision() {
22         return _rev;
23     }
24     public Resource getResource() {
25         return _res;
26     }
27     public String JavaDoc toString() {
28         return _res + " ("+_rev+")";
29     }
30     public long getLastModified() {
31         return getResource().getLastModified();
32     }
33 }
Popular Tags