| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Repository |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2001,2004 The Apache Software Foundation. | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | ||
| 17 | package org.apache.commons.jjar; | |
| 18 | ||
| 19 | import java.util.Properties; | |
| 20 | import java.util.StringTokenizer; | |
| 21 | import java.util.ArrayList; | |
| 22 | import java.util.Iterator; | |
| 23 | import java.util.List; | |
| 24 | ||
| 25 | import java.io.InputStream; | |
| 26 | ||
| 27 | import java.net.URL; | |
| 28 | import java.net.URLConnection; | |
| 29 | ||
| 30 | /** | |
| 31 | * first cut at a repository interface | |
| 32 | * | |
| 33 | * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a> | |
| 34 | * @version $Id: Repository.java 155454 2005-02-26 13:23:34Z dirkv $ | |
| 35 | */ | |
| 36 | public interface Repository | |
| 37 | { | |
| 38 | public void load( URL url ); | |
| 39 | ||
| 40 | public List getDependencyList( String pkg, String version ); | |
| 41 | ||
| 42 | public Iterator getPackageListIter(); | |
| 43 | ||
| 44 | public int getPackageCount(); | |
| 45 | ||
| 46 | public String getPackageDefaultVersion( String pkg ); | |
| 47 | ||
| 48 | public String getPackageDescription( String pkg ); | |
| 49 | ||
| 50 | public String getFetchTarget( String pkg, String version ); | |
| 51 | ||
| 52 | public boolean isPackage( String pkg ); | |
| 53 | ||
| 54 | public List getPackageVersionList( String pkg ); | |
| 55 | } | |
| 56 | ||
| 57 | ||
| 58 |