org.eclipse.osgi.framework.internal.core
Class PackageSource
java.lang.Object
org.eclipse.osgi.framework.internal.core.PackageSource
- All Implemented Interfaces:
- KeyedElement
- Direct Known Subclasses:
- MultiSourcePackage, NullPackageSource, SingleSourcePackage
public abstract class PackageSource
- extends java.lang.Object
- implements KeyedElement
Field Summary |
protected java.lang.String |
id
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected java.lang.String id
PackageSource
public PackageSource(java.lang.String id)
getId
public java.lang.String getId()
getSuppliers
public abstract SingleSourcePackage[] getSuppliers()
compare
public boolean compare(KeyedElement other)
- Description copied from interface:
KeyedElement
- Compares this element with a specified element
- Specified by:
compare
in interface KeyedElement
- Parameters:
other
- the element to compare with
- Returns:
- returns true if the specified element equals this element
getKeyHashCode
public int getKeyHashCode()
- Description copied from interface:
KeyedElement
- Returns the hash code of the key
- Specified by:
getKeyHashCode
in interface KeyedElement
- Returns:
- the hash code of the key
getKey
public java.lang.Object getKey()
- Description copied from interface:
KeyedElement
- Returns the key for this element
- Specified by:
getKey
in interface KeyedElement
- Returns:
- the key for this element
isNullSource
public boolean isNullSource()
isFriend
public boolean isFriend(java.lang.String symbolicName)
loadClass
public abstract java.lang.Class loadClass(java.lang.String name)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
getResource
public abstract java.net.URL getResource(java.lang.String name)
getResources
public abstract java.util.Enumeration getResources(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
hasCommonSource
public boolean hasCommonSource(PackageSource other)