Eclipse.org Eclipse.org

Device Kit Attributes

Device Kit Attributes Elements XML Reference
NameDescription
abstractSpecifies an abstract implementation class. The default is false.
accessIf true, a class field, get method, and set method will be generated for the variable. Default is false.
bundleSpecifies the Open Services Gateway Initiative (OSGi) bundle name.
bundleidSpecifies the Open Services Gateway Initiative (OSGi) bundle symbolic id.
cardinalityNew Specifies the cardinality type.
createmethodSpecifies create method(s). The default is false.
defaultvalueRequired. The default value to assign the variable.
executereadSpecifies the measurement supports executeRead. The default is true.
executewriteSpecifies the measurement supports executeWrite. If both the setvalue and setwrite attributes are false, then the measurement is a read only measurement. The default is true.
formatSpecifies the numeric format base of data. For instance, if the hardware's specification are in hexadecimal format, this attribute should be set to "hex".
getSpecifies to generate get methods. The default is false unless abstract or lazy.
idSpecifies an unique identifier for this element. After defining an element with the id attribute, other elements can reference this element by using the idref attribute. Since the id attribute value is used by the code generator to generate field and method names, no spaces, periods or commas should be used.
idrefSpecifies a reference to the element with the matching id attribute. The matching id attribute must be specified before the idref attribute can be used.
implementationSpecifies the implementation class name.
lazySpecifies if the generated code should be lazy. The default is false.
listenSpecifies the containing object to listen to this measurement. The default is false.
monitortimeSpecifies the monitor time in milliseconds.
nameRequired. The name/key of the custom variable.
packagebaseSpecifies the start of the generated code's package. That is, any code that Device Kit generates will be in a package starting with this value. A common value is "com.company-name".
serviceSpecifies the Open Services Gateway Initiative (OSGi) service interface name.
setvalueSpecifies the measurement supports setValue. If both the setvalue and setwrite attributes are false, then the measurement is a read only measurement. The default is true.
sizeSpecifies the cardinality size.
superclassSpecifies the implementation super class name.
triggerSpecifies the signal supports trigger. The default is true.
triggeronreadcommandSpecifies to trigger the signal on read command. The default is true.
triggeronsetvalueSpecifies to trigger the signal on set value. The default is true.
typeRequired. The type of the custom variable.

Copyright (c) IBM 2007. Device Kit XML Reference 1.0.0