public class SleeComponentElement extends Object
A common nested element of many Rhino management sub tasks used to identify a SLEE component
A component
nested element is used in a Rhino management sub task do identify a SLEE component using a unique name
, vendor
, version
combination.
These three fields must be unique within each component type and are sufficient to identify any component when the type of the component cam be inferred by the surrounding sub task.
An optional parameter, type
should be used when the surrounding sub task is not component type specific.
NB: Generally sub tasks that accept a component
nested element also accept a canonical name attribute to identify the component.
Either the canonical name attribute or component element should be specified, but not both.
Attribute |
Description |
Required |
name |
The name of the component. |
Yes. |
vendor |
The component’s vendor. |
Yes. |
version |
The component’s version. |
Yes. |
type |
Indicates the type of component. See below for allowable component types.. |
No. Only valid if the component type is not inferrable based on the encapsulating sub task. |
The following names are valid identifiers for a component type in the type
attribute .
event - event type
library - library
pspec - profile specification
ra - resource adaptor
ratype - resource adaptor type
sbb - sbb
sbbpart - sbb part
service - service
binding - binding descriptor
Modifier and Type | Field and Description |
---|---|
static String |
BINDING |
static String |
EVENT |
static String |
LIBRARY |
static String |
PROFILE_SPEC |
static String |
RESOURCE_ADAPTOR |
static String |
RESOURCE_ADAPTOR_TYPE |
static String |
SBB |
static String |
SBB_PART |
static String |
SERVICE |
Constructor and Description |
---|
SleeComponentElement() |
Modifier and Type | Method and Description |
---|---|
ComponentID |
createComponentID() |
ComponentID |
createComponentID(String componentType) |
static ComponentID |
createComponentID(String componentType,
String name,
String vendor,
String version) |
static String |
getComponentType(ComponentID id) |
String |
getName() |
String |
getType() |
String |
getVendor() |
String |
getVersion() |
void |
setName(String name) |
void |
setType(String type) |
void |
setVendor(String vendor) |
void |
setVersion(String version) |
String |
toString() |
public static final String EVENT
public static final String LIBRARY
public static final String PROFILE_SPEC
public static final String RESOURCE_ADAPTOR
public static final String RESOURCE_ADAPTOR_TYPE
public static final String SBB
public static final String SBB_PART
public static final String SERVICE
public static final String BINDING
public String getName()
public void setName(String name)
public String getVendor()
public void setVendor(String vendor)
public String getVersion()
public void setVersion(String version)
public String getType()
public void setType(String type)
public ComponentID createComponentID() throws InvalidArgumentException
InvalidArgumentException
public ComponentID createComponentID(String componentType) throws InvalidArgumentException
InvalidArgumentException
public static ComponentID createComponentID(String componentType, String name, String vendor, String version) throws InvalidArgumentException
InvalidArgumentException
public static String getComponentType(ComponentID id) throws IllegalArgumentException
IllegalArgumentException