public class AddonMetadataAdapter extends java.lang.Object implements AddonMetadata
AddonMetadata
construction.Constructor and Description |
---|
AddonMetadataAdapter(java.lang.String typeIdentifier,
java.lang.String typeName,
java.lang.String[] classification)
Constructor.
|
AddonMetadataAdapter(java.lang.String typeIdentifier,
java.lang.String typeName,
java.lang.String[] classification,
javax.swing.Icon icon)
Constructor.
|
AddonMetadataAdapter(java.lang.String typeIdentifier,
java.lang.String typeName,
java.lang.String[] classification,
java.lang.String iconPath)
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.
|
javax.swing.Icon |
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 AddonMetadataAdapter(java.lang.String typeIdentifier, java.lang.String typeName, java.lang.String[] classification)
typeIdentifier
- Unique type identifier of the addon. Must not be null.typeName
- Human readable name of the addon. Must not be null.classification
- Classification of the addon. Set to null for unclassified.public AddonMetadataAdapter(java.lang.String typeIdentifier, java.lang.String typeName, java.lang.String[] classification, javax.swing.Icon icon)
typeIdentifier
- Unique type identifier of the addon. Must not be null.typeName
- Human readable name of the addon. Must not be null.classification
- Classification of the addon. Set to null for unclassified.icon
- Icon of the addon. Set to null for default icon.public AddonMetadataAdapter(java.lang.String typeIdentifier, java.lang.String typeName, java.lang.String[] classification, java.lang.String iconPath)
typeIdentifier
- Unique type identifier of the addon. Must not be null.typeName
- Human readable name of the addon. Must not be null.classification
- Classification of the addon. Set to null for unclassified.iconPath
- Path of icon of the addon. Set to null for default icon.public java.lang.String getTypeName()
AddonMetadata
getTypeName
in interface AddonMetadata
public java.lang.String getTypeIdentifier()
AddonMetadata
getTypeIdentifier
in interface AddonMetadata
public javax.swing.Icon getIcon()
AddonMetadata
getIcon
in interface AddonMetadata
public java.lang.String[] getClassification()
AddonMetadata
getClassification
in interface AddonMetadata