public abstract class UserConfigurationType extends java.lang.Object implements ConfigurationType, java.io.Serializable
UserConfigurationType
contains metadata regarding classes which have been declared as
user-defined sensor implementations.
Subclasses should be either abstract or final.Modifier and Type | Class and Description |
---|---|
protected static class |
UserConfigurationType.SerializationProxy |
ConfigurationType.DeviceFlavor, ConfigurationType.DisplayNameFlavor
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
description |
protected java.lang.String |
name |
Modifier | Constructor and Description |
---|---|
|
UserConfigurationType(java.lang.Class clazz,
ConfigurationType.DeviceFlavor flavor,
java.lang.String xmlTag) |
protected |
UserConfigurationType(ConfigurationType.DeviceFlavor flavor) |
Modifier and Type | Method and Description |
---|---|
void |
finishedAnnotations(java.lang.Class clazz) |
java.lang.String |
getDescription() |
ConfigurationType.DeviceFlavor |
getDeviceFlavor()
Returns the configuration type's most specific flavor.
|
java.lang.String |
getDisplayName(ConfigurationType.DisplayNameFlavor flavor)
Returns a user-understandable string form of this configuration type
|
java.lang.String |
getName() |
java.lang.String |
getXmlTag()
Returns the XML element tag to be used when serializing configurations of this type
|
java.lang.String[] |
getXmlTagAliases()
Returns any additional XML tags that will resolve to this type
|
boolean |
isBuiltIn()
This is about whether the type "comes with" the SDK, not whether it lives in BuiltInConfigurationType
|
boolean |
isCompatibleWith(ControlSystem controlSystem) |
boolean |
isDeprecated()
Whether the type should be presented as deprecated in the user interface
|
boolean |
isDeviceFlavor(ConfigurationType.DeviceFlavor flavor)
Returns whether this configuration type is of the indicated flavor
|
boolean |
isOnBotJava() |
void |
processAnnotation(DeviceProperties deviceProperties) |
DeviceManager.UsbDeviceType |
toUSBDeviceType()
If this configuration type has a corresponding USB device configuration type, returns same;
otherwise, returns
FTDI_USB_UNKNOWN_DEVICE . |
protected java.lang.String name
protected java.lang.String description
public UserConfigurationType(java.lang.Class clazz, ConfigurationType.DeviceFlavor flavor, java.lang.String xmlTag)
protected UserConfigurationType(ConfigurationType.DeviceFlavor flavor)
public void processAnnotation(DeviceProperties deviceProperties)
public void finishedAnnotations(java.lang.Class clazz)
public boolean isCompatibleWith(ControlSystem controlSystem)
public ConfigurationType.DeviceFlavor getDeviceFlavor()
ConfigurationType
getDeviceFlavor
in interface ConfigurationType
public java.lang.String getName()
public java.lang.String getDescription()
public boolean isOnBotJava()
public boolean isBuiltIn()
public java.lang.String getDisplayName(ConfigurationType.DisplayNameFlavor flavor)
ConfigurationType
getDisplayName
in interface ConfigurationType
public java.lang.String getXmlTag()
ConfigurationType
getXmlTag
in interface ConfigurationType
public java.lang.String[] getXmlTagAliases()
ConfigurationType
getXmlTagAliases
in interface ConfigurationType
public DeviceManager.UsbDeviceType toUSBDeviceType()
ConfigurationType
FTDI_USB_UNKNOWN_DEVICE
.toUSBDeviceType
in interface ConfigurationType
public boolean isDeviceFlavor(ConfigurationType.DeviceFlavor flavor)
ConfigurationType
isDeviceFlavor
in interface ConfigurationType
public boolean isDeprecated()
ConfigurationType
isDeprecated
in interface ConfigurationType