public interface BaseDescription
This interface is not intended to be implemented by clients. The
StateObjectFactory
should be used to construct instances.
Modifier and Type | Method and Description |
---|---|
BundleCapability |
getCapability()
Returns the capability represented by this description.
|
Map<String,Object> |
getDeclaredAttributes()
Returns the attributes declared with the description.
|
Map<String,String> |
getDeclaredDirectives()
Returns the directives declared with the description.
|
String |
getName()
Returns the name.
|
BundleDescription |
getSupplier()
Returns the bundle which supplies this base description
|
Object |
getUserObject()
Returns the user object associated to this description, or
null if none exists. |
Version |
getVersion()
Returns the version.
|
void |
setUserObject(Object userObject)
Associates a user-provided object to this description, or
removes an existing association, if
null is provided. |
String getName()
Version getVersion()
BundleDescription getSupplier()
Map<String,String> getDeclaredDirectives()
Map<String,Object> getDeclaredAttributes()
BundleCapability getCapability()
null
is
returned.Object getUserObject()
null
if none exists.null
void setUserObject(Object userObject)
null
is provided. The
provided object is not interpreted in any ways by this
description.userObject
- an arbitrary object provided by the user, or
null
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.