Interface BaseDescription
- All Known Subinterfaces:
BundleDescription, ExportPackageDescription, GenericDescription, NativeCodeDescription
public interface BaseDescription
This class represents a base description object for a state. All description
objects in a state have a name and a version.
This interface is not intended to be implemented by clients. The
StateObjectFactory should be used to construct instances.
- Since:
- 3.1
- Restriction:
- This interface is not intended to be implemented by clients.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the capability represented by this description.Returns the attributes declared with the description.Returns the directives declared with the description.getName()Returns the name.Returns the bundle which supplies this base descriptionReturns the user object associated to this description, ornullif none exists.Returns the version.voidsetUserObject(Object userObject) Associates a user-provided object to this description, or removes an existing association, ifnullis provided.
-
Method Details
-
getName
-
getVersion
-
getSupplier
BundleDescription getSupplier()Returns the bundle which supplies this base description- Returns:
- the bundle which supplies this base description
- Since:
- 3.2
-
getDeclaredDirectives
-
getDeclaredAttributes
-
getCapability
BundleCapability getCapability()Returns the capability represented by this description. Some descriptions types may not be able to represent a capability. In such casesnullis returned.- Returns:
- the capability represented by this base description
- Since:
- 3.7
-
getUserObject
Object getUserObject()Returns the user object associated to this description, ornullif none exists.- Returns:
- the user object associated to this description, or
null - Since:
- 3.8
-
setUserObject
Associates a user-provided object to this description, or removes an existing association, ifnullis provided. The provided object is not interpreted in any ways by this description.- Parameters:
userObject- an arbitrary object provided by the user, ornull- Since:
- 3.8
-