1 19 20 26 27 package org.netbeans.modules.exceptions.data; 28 import java.io.Serializable ; 29 import java.util.LinkedList ; 30 import java.util.logging.Level ; 31 import java.util.logging.LogRecord ; 32 33 38 39 40 public class Record implements Serializable { 41 public static final int ITEMS_COUNT = 5; 42 43 private String [] userData; private StackTraceElement [] stackTrace; 45 private String oSystem; 46 private String version; 47 private String vMachine; 48 private String userName; 49 private LinkedList <LogRecord > logger; 51 private String severity; 52 private String className; private String message; 54 56 57 public Record() { 58 } 59 60 public String [] getUserData() { 61 return userData; 62 } 63 64 public void setUserData(String [] _userData){ 65 userData=_userData; 66 } 67 68 public StackTraceElement [] getThrowable() { 69 return stackTrace; 70 } 71 72 public void setThrowable(StackTraceElement [] _stackTrace){ 73 stackTrace = _stackTrace; 74 } 75 76 public String getClassName() { 77 return className; 78 } 79 80 public void setClassName(String _className){ 81 className = _className; 82 } 83 84 public String getOs() { 85 return oSystem; 86 } 87 88 public void setOs(String _oSystem) { 89 this.oSystem = _oSystem; 90 } 91 92 public String getVersion() { 93 return version; 94 } 95 96 public void setVersion(String version) { 97 this.version = version; 98 } 99 100 public String getVm() { 101 return vMachine; 102 } 103 104 public void setVm(String _vMachine) { 105 this.vMachine = _vMachine; 106 } 107 108 public String getUserName() { 109 return userName; 110 } 111 112 public void setUserName(String userName) { 113 this.userName = userName; 114 } 115 116 public LinkedList <LogRecord > getLogger() { 117 return logger; 118 } 119 120 public void setLogger(LinkedList <LogRecord > logger) { 121 this.logger = logger; 122 } 123 124 public Level getSeverity(){ 125 return Level.parse(severity); 126 } 127 128 public void setSeverity(Level _Severity){ 129 severity = _Severity.toString(); 130 } 131 132 public String getMessage(){ 133 if (message!= null) return message; 134 else return new String (); 135 } 136 137 public void setMessage(String _message){ 138 message = _message; 139 } 140 141 142 } 143 | Popular Tags |