public interface CapabilityWrapper
Capability class for developer to implement
and devise better handling of capability and its attributes.| Modifier and Type | Method and Description |
|---|---|
void |
clearAndSetStandardCommandSet(int[] commands)
A function to clear current commands and set new one's.
|
Capability |
getRealCapability()
A getter for the capability that is wrapped.
|
void |
internalAddAttribute(Attribute attribute)
A function that will would get triggered when a
Attribute is added. |
void |
internalRemoveAttribute(int attributeId)
A function that would be triggered when a
Attribute is removed. |
void |
internalSetName(java.lang.String name)
A function that would be triggered when
Capability.getName() is updated. |
void |
internalSetParent(Resource parent)
A function that would be triggered when parent of the capability updated.
|
void |
markAsReady()
A function that would be triggered to make
Capability this as ready
by updating values of attributes. |
Capability getRealCapability()
Capability belonging to this wrapper.void markAsReady()
Capability this as ready
by updating values of attributes.void internalSetName(java.lang.String name)
Capability.getName() is updated.name - Updated name of the capability.void internalSetParent(Resource parent)
parent - Updated resource which is parent of the capability.void clearAndSetStandardCommandSet(int[] commands)
commands - commands which needs to set as the standard commands
for the capability.void internalAddAttribute(Attribute attribute)
Attribute is added.attribute - Attribute which is added to the capability.void internalRemoveAttribute(int attributeId)
Attribute is removed.attributeId - ID of attribute which is removed from the capability.