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)
KeyedElement
compare
in interface KeyedElement
other
- the element to compare withpublic int getKeyHashCode()
KeyedElement
getKeyHashCode
in interface KeyedElement
public Object getKey()
KeyedElement
getKey
in interface KeyedElement
public boolean isNullSource()
public boolean isFriend(String symbolicName)
public abstract Class<?> loadClass(String name) throws ClassNotFoundException
ClassNotFoundException
public abstract Enumeration<URL> getResources(String name) throws IOException
IOException
public boolean hasCommonSource(PackageSource other)
public abstract Collection<String> listResources(String path, String filePattern)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.