Package net.sf.okapi.common.plugins
Class PluginItem
- java.lang.Object
-
- net.sf.okapi.common.plugins.PluginItem
-
public class PluginItem extends Object
Encapsulates the generic information for a plug-in item.The information is composed of the type of the plug-in, the name of the class that implements it, and optional class information for the optional parameters editor associated with the plug-in.
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE_IEDITORDESCRIPTIONPROVIDERIdentifies a plug-in implementingIEditorDescriptionProvider.static intTYPE_IEMBEDDABLEPARAMETERSEDITORIdentifies a plug-in implementingIEmbeddableParametersEditor.static intTYPE_IFILTERIdentifies a plug-in implementingIFilter.static intTYPE_IPARAMETERSEDITORIdentifies a plug-in implementingIParametersEditor.static intTYPE_IPIPELINESTEPIdentifies a plug-in implementingIPipelineStep.static intTYPE_IQUERYIdentifies a plug-in implementingIQuery.static intTYPE_MAINConvenience mask for all main types of plug-ins.
-
Constructor Summary
Constructors Constructor Description PluginItem(int type, String className)Creates a new plug-in item of a given type and class name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassName()Gets the name of the class implementing this plug-in.ClassInfogetEditorDescriptionProvider()Gets the class information for the IEditorDescriptionProvider class associated with this plug-in, or null if there is none.ClassInfogetEmbeddableParamsEditor()Gets the class information for the IEmbeddableParamsEditor class associated with this plug-in, or null if there is none.ClassInfogetParamsEditor()Gets the class information for the IParameterEditor class associated with this plug-in, or null if there is none.intgetType()Gets the type of this plug-in.
-
-
-
Field Detail
-
TYPE_IFILTER
public static final int TYPE_IFILTER
Identifies a plug-in implementingIFilter.- See Also:
- Constant Field Values
-
TYPE_IPIPELINESTEP
public static final int TYPE_IPIPELINESTEP
Identifies a plug-in implementingIPipelineStep.- See Also:
- Constant Field Values
-
TYPE_MAIN
public static final int TYPE_MAIN
Convenience mask for all main types of plug-ins.- See Also:
- Constant Field Values
-
TYPE_IPARAMETERSEDITOR
public static final int TYPE_IPARAMETERSEDITOR
Identifies a plug-in implementingIParametersEditor.- See Also:
- Constant Field Values
-
TYPE_IEMBEDDABLEPARAMETERSEDITOR
public static final int TYPE_IEMBEDDABLEPARAMETERSEDITOR
Identifies a plug-in implementingIEmbeddableParametersEditor.- See Also:
- Constant Field Values
-
TYPE_IEDITORDESCRIPTIONPROVIDER
public static final int TYPE_IEDITORDESCRIPTIONPROVIDER
Identifies a plug-in implementingIEditorDescriptionProvider.- See Also:
- Constant Field Values
-
TYPE_IQUERY
public static final int TYPE_IQUERY
Identifies a plug-in implementingIQuery.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PluginItem
public PluginItem(int type, String className)Creates a new plug-in item of a given type and class name.- Parameters:
type- the type of the new plug-in.className- the class name of the new plug-in.
-
-
Method Detail
-
getType
public int getType()
Gets the type of this plug-in.- Returns:
- the type of this plug-in.
-
getClassName
public String getClassName()
Gets the name of the class implementing this plug-in.- Returns:
- the name of the class implementing this plug-in.
-
getParamsEditor
public ClassInfo getParamsEditor()
Gets the class information for the IParameterEditor class associated with this plug-in, or null if there is none.- Returns:
- the class information for the IParameterEditor class associated with this plug-in.
-
getEmbeddableParamsEditor
public ClassInfo getEmbeddableParamsEditor()
Gets the class information for the IEmbeddableParamsEditor class associated with this plug-in, or null if there is none.- Returns:
- the class information for the IEmbeddableParamsEditor class associated with this plug-in.
-
getEditorDescriptionProvider
public ClassInfo getEditorDescriptionProvider()
Gets the class information for the IEditorDescriptionProvider class associated with this plug-in, or null if there is none.- Returns:
- the class information for the IEditorDescriptionProvider class associated with this plug-in.
-
-