1 19 package org.netbeans.modules.xml.refactoring.ui.j.api; 20 21 22 28 public final class Problem { 29 private final boolean fatal; 30 private final String message; 31 private Problem next = null; 32 private ProblemDetails details; 33 34 38 public Problem(boolean fatal, String message) { 39 this.fatal = fatal; 40 this.message = message; 41 } 42 43 public Problem(boolean fatal, String message, ProblemDetails details) { 44 this(fatal, message); 45 this.details = details; 46 } 47 48 51 public boolean isFatal() { 52 return fatal; 53 } 54 55 58 public String getMessage() { 59 return message; 60 } 61 62 65 public Problem getNext() { 66 return next; 67 } 68 69 75 public void setNext(Problem next) throws IllegalStateException { 76 if (this.next != null) { 77 throw new IllegalStateException ("Cannot change \"next\" property of Problem."); } 79 this.next = next; 80 } 81 82 86 public ProblemDetails getDetails() { 87 return details; 88 } 89 } 90 | Popular Tags |