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 Object
implements BaseDescription


Field Summary
protected  Object monitor
           
 
Constructor Summary
BaseDescriptionImpl()
           
 
Method Summary
 BundleCapability getCapability()
          Returns the capability represented by this description.
 BaseDescription getFragmentDeclaration()
           
 String getName()
          Returns the name.
 Object getUserObject()
          Returns the user object associated to this description, or null if none exists.
 Version getVersion()
          Returns the version.
protected  void setName(String name)
           
 void setUserObject(Object userObject)
          Associates a user-provided object to this description, or removes an existing association, if null is provided.
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 Object monitor
Constructor Detail

BaseDescriptionImpl

public BaseDescriptionImpl()
Method Detail

getName

public 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(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

getUserObject

public Object getUserObject()
Description copied from interface: BaseDescription
Returns the user object associated to this description, or null if none exists.

Specified by:
getUserObject in interface BaseDescription
Returns:
the user object associated to this description, or null

setUserObject

public void setUserObject(Object userObject)
Description copied from interface: BaseDescription
Associates a user-provided object to this description, or removes an existing association, if null is provided. The provided object is not interpreted in any ways by this description.

Specified by:
setUserObject in interface BaseDescription
Parameters:
userObject - an arbitrary object provided by the user, or null


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.