1 11 12 package org.eclipse.osgi.framework.log; 13 14 18 public class FrameworkLogEntry { 19 24 public static final int OK = 0; 25 26 31 public static final int INFO = 0x01; 32 33 38 public static final int WARNING = 0x02; 39 40 45 public static final int ERROR = 0x04; 46 47 52 public static final int CANCEL = 0x08; 53 54 55 private String entry; 59 private String message; 60 private int stackCode; 62 private Throwable throwable; 64 private FrameworkLogEntry[] children; 65 private int severity = 0; 66 private int bundleCode = 0; 67 68 76 public FrameworkLogEntry(String entry, String message, int stackCode, Throwable throwable, FrameworkLogEntry[] children) { 77 this.entry = entry; 78 this.message = message; 79 this.stackCode = stackCode; 80 this.throwable = throwable; 81 this.children = children; 82 } 83 84 95 public FrameworkLogEntry(String entry, int severity, int bundleCode, String message, int stackCode, Throwable throwable, FrameworkLogEntry[] children) { 96 this.entry = entry; 97 this.message = message; 98 this.stackCode = stackCode; 99 this.throwable = throwable; 100 this.children = children; 101 this.severity = severity; 102 this.bundleCode = bundleCode; 103 } 104 105 109 public FrameworkLogEntry[] getChildren() { 110 return children; 111 } 112 113 116 public String getEntry() { 117 return entry; 118 } 119 120 123 public String getMessage() { 124 return message; 125 } 126 127 130 public int getStackCode() { 131 return stackCode; 132 } 133 134 137 public Throwable getThrowable() { 138 return throwable; 139 } 140 141 160 public int getSeverity() { 161 return severity; 162 } 163 164 170 public int getBundleCode() { 171 return bundleCode; 172 } 173 174 } 175 | Popular Tags |