public final class FileTypeBean extends java.lang.Object implements PluginAware
Modifier and Type | Field and Description |
---|---|
java.lang.String |
extensions
Semicolon-separated list of extensions to be associated with the file type.
|
java.lang.String |
fieldName
Name of the public static field in the implementationClass class containing the file type instance.
|
java.lang.String |
fileNames
Semicolon-separated list of exact file names to be associated with the file type.
|
java.lang.String |
fileNamesCaseInsensitive
Semicolon-separated list of exact file names (case-insensitive) to be associated with the file type.
|
java.lang.String |
implementationClass
Name of the class implementing the file type (must be a subclass of
FileType ). |
java.lang.String |
language
For file types that extend
LanguageFileType and are the primary file type for the corresponding language, this must be set
to the ID of the language returned by LanguageFileType.getLanguage() . |
java.lang.String |
name
Name of the file type.
|
java.lang.String |
patterns
Semicolon-separated list of patterns (strings containing ? and * characters) to be associated with the file type.
|
Constructor and Description |
---|
FileTypeBean() |
Modifier and Type | Method and Description |
---|---|
void |
addMatchers(java.util.List<? extends FileNameMatcher> matchers) |
java.util.List<FileNameMatcher> |
getMatchers() |
PluginDescriptor |
getPluginDescriptor() |
PluginId |
getPluginId() |
void |
setPluginDescriptor(PluginDescriptor pluginDescriptor)
Called by extensions framework when extension is loaded from plugin.xml descriptor.
|
public java.lang.String implementationClass
FileType
). This can be omitted
if the fileType declaration is used to add extensions to an existing file type (in this case, only 'name'
and 'extensions' attributes must be specified).public java.lang.String fieldName
public java.lang.String name
FileType.getName()
.public java.lang.String extensions
public java.lang.String fileNames
public java.lang.String patterns
public java.lang.String fileNamesCaseInsensitive
public java.lang.String language
LanguageFileType
and are the primary file type for the corresponding language, this must be set
to the ID of the language returned by LanguageFileType.getLanguage()
.public void addMatchers(java.util.List<? extends FileNameMatcher> matchers)
public java.util.List<FileNameMatcher> getMatchers()
public PluginDescriptor getPluginDescriptor()
public void setPluginDescriptor(PluginDescriptor pluginDescriptor)
PluginAware
If this method is implemented in a bean class
extension point and it also exposes the stored plugin description via getPluginDescriptor
method, you must annotate the latter
with @Transient
to ensure that serialization engine won't try to deserialize this property.
setPluginDescriptor
in interface PluginAware
pluginDescriptor
- descriptor of the plugin that provided this particular extension.public PluginId getPluginId()