public abstract class BaseDescriptionImpl extends Object implements BaseDescription
Constructor and Description |
---|
BaseDescriptionImpl() |
Modifier and Type | Method and Description |
---|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeclaredAttributes, getDeclaredDirectives, getSupplier
protected final Object monitor
public String getName()
BaseDescription
getName
in interface BaseDescription
public Version getVersion()
BaseDescription
getVersion
in interface BaseDescription
protected void setName(String name)
protected void setVersion(Version version)
public BaseDescription getFragmentDeclaration()
public BundleCapability getCapability()
BaseDescription
null
is
returned.getCapability
in interface BaseDescription
public Object getUserObject()
BaseDescription
null
if none exists.getUserObject
in interface BaseDescription
null
public void setUserObject(Object userObject)
BaseDescription
null
is provided. The
provided object is not interpreted in any ways by this
description.setUserObject
in interface BaseDescription
userObject
- an arbitrary object provided by the user, or
null
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.