001    package railo.runtime.debug;
002    
003    import railo.commons.lang.StringUtil;
004    
005    public final class DebugTraceImpl implements DebugTrace {
006    
007            private static final long serialVersionUID = -3619310656845433643L;
008            
009            private int type;
010            private String category;
011            private String text;
012            private String template;
013            private int line;
014            private String varValue;
015            private long time;
016            private String varName;
017            private String action;
018    
019            public DebugTraceImpl(int type, String category, String text, String template, int line, String action,String varName, String varValue, long time) {
020                    this.type=type;
021                    this.category=category;
022                    this.text=text;
023                    this.template=template;
024                    this.line=line;
025                    this.varName=varName;
026                    this.varValue=varValue;
027                    this.time=(time<0)?0:time;
028                    this.action=StringUtil.emptyIfNull(action);
029            }
030    
031            /**
032             * @return the category
033             */
034            public String getCategory() {
035                    return category;
036            }
037    
038            /**
039             * @return the line
040             */
041            public int getLine() {
042                    return line;
043            }
044    
045            /**
046             * @return the template
047             */
048            public String getTemplate() {
049                    return template;
050            }
051    
052            /**
053             * @return the text
054             */
055            public String getText() {
056                    return text;
057            }
058    
059            /**
060             * @return the time
061             */
062            public long getTime() {
063                    return time;
064            }
065    
066            /**
067             * @return the type
068             */
069            public int getType() {
070                    return type;
071            }
072    
073            /**
074             * @return the var value
075             */
076            public String getVarValue() {
077                    return varValue;
078            }
079            public String getVarName() {
080                    return varName;
081            }
082            public String getAction() {
083                    return action;
084            }
085            
086    }