站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Problem (Refactoring API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.refactoring.api 1.0

org.netbeans.modules.refactoring.api
Class Problem

java.lang.Object
  extended by org.netbeans.modules.refactoring.api.Problem

public final class Problem
extends Object

Class used to represent problems encountered when performing various refactoring calls. Problems can be chained (using setNext method) - every problem can point to the following problem.


Constructor Summary
Problem(boolean fatal, String message)
          Creates new instance of Problem class.
Problem(boolean fatal, String message, ProblemDetails details)
          Creates new instance of Problem class.
 
Method Summary
 ProblemDetails getDetails()
          Getter for ProblemDetails
 String getMessage()
          Returns textual description of the problem.
 Problem getNext()
          Returns the following problem (or null if there none).
 boolean isFatal()
          Indicates whether the problem is fatal.
 void setNext(Problem next)
          Sets the following problem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Problem

public Problem(boolean fatal,
               String message)
Creates new instance of Problem class.

Parameters:
fatal - Indicates whether the problem is fatal.
message - Textual description of the problem.

Problem

public Problem(boolean fatal,
               String message,
               ProblemDetails details)
Creates new instance of Problem class.

Parameters:
fatal - Indicates whether the problem is fatal.
message - Textual description of the problem.
details - Problem details
See Also:
ProblemDetails
Method Detail

isFatal

public boolean isFatal()
Indicates whether the problem is fatal.

Returns:
true if the problem is fatal, otherwise returns false.

getMessage

public String getMessage()
Returns textual description of the problem.

Returns:
Textual description of the problem.

getNext

public Problem getNext()
Returns the following problem (or null if there none).

Returns:
The following problem.

setNext

public void setNext(Problem next)
             throws IllegalStateException
Sets the following problem. The problem can be set only once - subsequent attempts to call this method will result in IllegalStateException.

Parameters:
next - The following problem.
Throws:
IllegalStateException - subsequent attempts to call this method will result in IllegalStateException.

getDetails

public ProblemDetails getDetails()
Getter for ProblemDetails

Returns:
instance of ProblemDetails or null

org.netbeans.modules.refactoring.api 1.0

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.