001 /* 002 * Copyright 2001,2004 The Apache Software Foundation. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017 package org.apache.commons.jjar; 018 019 import java.util.Properties; 020 import java.util.StringTokenizer; 021 import java.util.ArrayList; 022 import java.util.Iterator; 023 import java.util.List; 024 025 import java.io.InputStream; 026 027 import java.net.URL; 028 import java.net.URLConnection; 029 030 /** 031 * first cut at a repository interface 032 * 033 * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a> 034 * @version $Id: Repository.java 155454 2005-02-26 13:23:34Z dirkv $ 035 */ 036 public interface Repository 037 { 038 public void load( URL url ); 039 040 public List getDependencyList( String pkg, String version ); 041 042 public Iterator getPackageListIter(); 043 044 public int getPackageCount(); 045 046 public String getPackageDefaultVersion( String pkg ); 047 048 public String getPackageDescription( String pkg ); 049 050 public String getFetchTarget( String pkg, String version ); 051 052 public boolean isPackage( String pkg ); 053 054 public List getPackageVersionList( String pkg ); 055 } 056 057 058