com.rapidminer.gui.new_plotter
Class PlotConfigurationError

java.lang.Object
  extended by com.rapidminer.gui.new_plotter.PlotConfigurationError

public class PlotConfigurationError
extends java.lang.Object

Author:
Marius Helf, Nils Woehler

Constructor Summary
PlotConfigurationError(java.lang.String errorId, java.lang.Object... messageParameters)
           
PlotConfigurationError(java.lang.String errorId, PlotConfigurationChangeEvent changeForQuickFix, java.lang.Object... messageParameters)
           
PlotConfigurationError(java.lang.String errorId, PlotConfigurationQuickFix quickFix, java.lang.Object... messageParameters)
           
 
Method Summary
 void addQuickFix(PlotConfigurationQuickFix quickFix)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getErrorDescription()
           
 java.lang.String getErrorId()
           
 java.lang.String getErrorMessage()
           
static java.lang.String getErrorMessage(java.lang.String identifier, java.lang.Object[] arguments)
           
 java.lang.String getErrorName()
           
 java.lang.Object[] getMessageParameters()
           
 java.util.List<PlotConfigurationQuickFix> getQuickFixes()
           
static java.lang.String getResourceString(java.lang.String id, java.lang.String key, java.lang.String deflt)
          This returns a resource message of the internationalized error messages identified by an id.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlotConfigurationError

public PlotConfigurationError(java.lang.String errorId,
                              java.lang.Object... messageParameters)

PlotConfigurationError

public PlotConfigurationError(java.lang.String errorId,
                              PlotConfigurationQuickFix quickFix,
                              java.lang.Object... messageParameters)

PlotConfigurationError

public PlotConfigurationError(java.lang.String errorId,
                              PlotConfigurationChangeEvent changeForQuickFix,
                              java.lang.Object... messageParameters)
Method Detail

addQuickFix

public void addQuickFix(PlotConfigurationQuickFix quickFix)

getQuickFixes

public java.util.List<PlotConfigurationQuickFix> getQuickFixes()

getErrorName

public java.lang.String getErrorName()

getErrorMessage

public java.lang.String getErrorMessage()

getMessageParameters

public java.lang.Object[] getMessageParameters()

getErrorId

public java.lang.String getErrorId()

getErrorDescription

public java.lang.String getErrorDescription()

getResourceString

public static java.lang.String getResourceString(java.lang.String id,
                                                 java.lang.String key,
                                                 java.lang.String deflt)
This returns a resource message of the internationalized error messages identified by an id. Compared to the legacy method #getResourceString(int, String, String) this supports a more detailed identifier. This makes it easier to ensure extensions don't reuse already defined core errors. It is common sense to add the extensions namespace identifier as second part of the key, just after error. For example: error.rmx_web.operator.unusable = This operator {0} is unusable.

Parameters:
id - The identifier of the error. "gui.plotter.error." will be automatically prepended-
key - The part of the error description that should be shown.
deflt - The default if no resource bundle is available.

getErrorMessage

public static java.lang.String getErrorMessage(java.lang.String identifier,
                                               java.lang.Object[] arguments)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2001-2009 by Rapid-I