org.eclipse.osgi.internal.resolver
Class BaseDescriptionImpl
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
monitor
protected final Object monitor
BaseDescriptionImpl
public BaseDescriptionImpl()
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.