Package org.htmlunit
Class PluginConfiguration
- java.lang.Object
-
- org.htmlunit.PluginConfiguration
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class PluginConfiguration extends java.lang.Object implements java.io.Serializable, java.lang.CloneableContains information about a plugin as available in JavaScript viadocument.navigator.plugins, as well as the associated mime types.- See Also:
- XUL Planet Documentation, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPluginConfiguration.MimeTypeHolds information about a single mime type associated with a plugin.
-
Constructor Summary
Constructors Constructor Description PluginConfiguration(java.lang.String name, java.lang.String description, java.lang.String version, java.lang.String filename)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginConfigurationclone()Creates and return a copy of this object.booleanequals(java.lang.Object o)java.lang.StringgetDescription()Gets the plugin's description.java.lang.StringgetFilename()Gets the plugin's file name.java.util.Set<PluginConfiguration.MimeType>getMimeTypes()Gets the associated mime types.java.lang.StringgetName()Gets the plugin's name.java.lang.StringgetVersion()Gets the plugin's version.inthashCode()
-
-
-
Constructor Detail
-
PluginConfiguration
public PluginConfiguration(java.lang.String name, java.lang.String description, java.lang.String version, java.lang.String filename)Creates a new instance.- Parameters:
name- the plugin namedescription- the plugin descriptionversion- the versionfilename- the plugin filename
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Gets the plugin's description.- Returns:
- the description
-
getFilename
public java.lang.String getFilename()
Gets the plugin's file name.- Returns:
- the file name
-
getName
public java.lang.String getName()
Gets the plugin's name.- Returns:
- the name
-
getVersion
public java.lang.String getVersion()
Gets the plugin's version.- Returns:
- the version
-
getMimeTypes
public java.util.Set<PluginConfiguration.MimeType> getMimeTypes()
Gets the associated mime types.- Returns:
- a set of
PluginConfiguration.MimeType
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
clone
public PluginConfiguration clone()
Creates and return a copy of this object. Current instance and cloned object can be modified independently.- Overrides:
clonein classjava.lang.Object- Returns:
- a clone of this instance.
-
-