C
- Specific subclass of configuration for which an UI should be created.public class GenericComponentMetadata<C extends Configuration> extends java.lang.Object implements ComponentMetadata<C>
Constructor and Description |
---|
GenericComponentMetadata(java.lang.String typeIdentifier,
java.lang.Class<C> configurationClass,
java.lang.Class<? extends Component> componentInterface)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getClassification()
Returns an array of strings (possibly of length 0) specifying the classification of the addon.
|
java.lang.Class<? extends Component> |
getComponentInterface()
Returns the interface of the measurement component created when the configuration is parsed.
|
java.lang.Class<C> |
getConfigurationClass()
Returns the class of the configuration of the measurement component.
|
javax.swing.ImageIcon |
getIcon()
Returns an icon representative for this addon, or null if no icon is set.
|
java.lang.String |
getTypeIdentifier()
Returns the type identifier of the addon.
|
java.lang.String |
getTypeName()
Returns a short human readable name of the addon.
|
public GenericComponentMetadata(java.lang.String typeIdentifier, java.lang.Class<C> configurationClass, java.lang.Class<? extends Component> componentInterface)
typeIdentifier
- Type identifier of the configuration.configurationClass
- Class of the configuration.componentInterface
- The interface of the measurement component which is created when the configuration is compiled.public java.lang.String getTypeName()
AddonMetadata
getTypeName
in interface AddonMetadata
public java.lang.Class<C> getConfigurationClass()
ComponentMetadata
getConfigurationClass
in interface ComponentMetadata<C extends Configuration>
public java.lang.String getTypeIdentifier()
AddonMetadata
getTypeIdentifier
in interface AddonMetadata
public javax.swing.ImageIcon getIcon()
AddonMetadata
getIcon
in interface AddonMetadata
public java.lang.String[] getClassification()
AddonMetadata
getClassification
in interface AddonMetadata
public java.lang.Class<? extends Component> getComponentInterface()
ComponentMetadata
getComponentInterface
in interface ComponentMetadata<C extends Configuration>