org.eclipse.osgi.framework.internal.core
Class PackageSource

java.lang.Object
  extended by 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
           
 
Constructor Summary
PackageSource(java.lang.String id)
           
 
Method Summary
 boolean compare(KeyedElement other)
          Compares this element with a specified element
 java.lang.String getId()
           
 java.lang.Object getKey()
          Returns the key for this element
 int getKeyHashCode()
          Returns the hash code of the key
abstract  java.net.URL getResource(java.lang.String name)
           
abstract  java.util.Enumeration getResources(java.lang.String name)
           
abstract  SingleSourcePackage[] getSuppliers()
           
 boolean hasCommonSource(PackageSource other)
           
 boolean isFriend(java.lang.String symbolicName)
           
 boolean isNullSource()
           
abstract  java.lang.Class loadClass(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id
Constructor Detail

PackageSource

public PackageSource(java.lang.String id)
Method Detail

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)