public abstract class PackageSource extends Object implements KeyedElement
| Constructor and Description |
|---|
PackageSource(String id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compare(KeyedElement other)
Compares this element with a specified element
|
String |
getId() |
Object |
getKey()
Returns the key for this element
|
int |
getKeyHashCode()
Returns the hash code of the key
|
abstract URL |
getResource(String name) |
abstract Enumeration<URL> |
getResources(String name) |
abstract SingleSourcePackage[] |
getSuppliers() |
boolean |
hasCommonSource(PackageSource other) |
boolean |
isFriend(String symbolicName) |
boolean |
isNullSource() |
abstract Collection<String> |
listResources(String path,
String filePattern) |
abstract Class<?> |
loadClass(String name) |
protected String id
public PackageSource(String id)
public String getId()
public abstract SingleSourcePackage[] getSuppliers()
public boolean compare(KeyedElement other)
KeyedElementcompare in interface KeyedElementother - the element to compare withpublic int getKeyHashCode()
KeyedElementgetKeyHashCode in interface KeyedElementpublic Object getKey()
KeyedElementgetKey in interface KeyedElementpublic boolean isNullSource()
public boolean isFriend(String symbolicName)
public abstract Class<?> loadClass(String name) throws ClassNotFoundException
ClassNotFoundExceptionpublic abstract Enumeration<URL> getResources(String name) throws IOException
IOExceptionpublic boolean hasCommonSource(PackageSource other)
public abstract Collection<String> listResources(String path, String filePattern)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.