org.eclipse.osgi.internal.resolver
Class BaseDescriptionImpl

java.lang.Object
  extended by org.eclipse.osgi.internal.resolver.BaseDescriptionImpl
All Implemented Interfaces:
BaseDescription
Direct Known Subclasses:
BundleDescriptionImpl, ExportPackageDescriptionImpl, GenericDescriptionImpl, NativeCodeDescriptionImpl

public abstract class BaseDescriptionImpl
extends java.lang.Object
implements BaseDescription


Field Summary
protected  java.lang.Object monitor
           
 
Constructor Summary
BaseDescriptionImpl()
           
 
Method Summary
 BundleCapability getCapability()
          Returns the capability represented by this description.
 BaseDescription getFragmentDeclaration()
           
 java.lang.String getName()
          Returns the name.
 Version getVersion()
          Returns the version.
protected  void setName(java.lang.String name)
           
protected  void setVersion(Version version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.osgi.service.resolver.BaseDescription
getDeclaredAttributes, getDeclaredDirectives, getSupplier
 

Field Detail

monitor

protected final java.lang.Object monitor
Constructor Detail

BaseDescriptionImpl

public BaseDescriptionImpl()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: BaseDescription
Returns the name.

Specified by:
getName in interface BaseDescription
Returns:
the name

getVersion

public Version getVersion()
Description copied from interface: BaseDescription
Returns the version.

Specified by:
getVersion in interface BaseDescription
Returns:
the version

setName

protected void setName(java.lang.String name)

setVersion

protected void setVersion(Version version)

getFragmentDeclaration

public BaseDescription getFragmentDeclaration()

getCapability

public BundleCapability getCapability()
Description copied from interface: BaseDescription
Returns the capability represented by this description. Some descriptions types may not be able to represent a capability. In such cases null is returned.

Specified by:
getCapability in interface BaseDescription
Returns:
the capability represented by this base description


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.