trace/traceviewer/com.nokia.trace.dictionary/src/com/nokia/trace/dictionary/model/Trace.java
changeset 11 5b9d4d8641ce
equal deleted inserted replaced
10:ed1c9f64298a 11:5b9d4d8641ce
       
     1 /*
       
     2  * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:
       
    15  *
       
    16  * Trace element
       
    17  *
       
    18  */
       
    19 package com.nokia.trace.dictionary.model;
       
    20 
       
    21 /**
       
    22  * Trace element
       
    23  * 
       
    24  */
       
    25 public class Trace extends DecodeObject {
       
    26 
       
    27 	/**
       
    28 	 * Group this trace belongs to
       
    29 	 */
       
    30 	private TraceGroup group;
       
    31 
       
    32 	/**
       
    33 	 * Trace data containing list of decode parameters of this trace
       
    34 	 */
       
    35 	private TraceData traceData;
       
    36 
       
    37 	/**
       
    38 	 * Location of this trace
       
    39 	 */
       
    40 	private Location location;
       
    41 
       
    42 	/**
       
    43 	 * Line number where this trace is defined
       
    44 	 */
       
    45 	private int lineNumber;
       
    46 
       
    47 	/**
       
    48 	 * Method name where this trace is defined
       
    49 	 */
       
    50 	private String methodName;
       
    51 
       
    52 	/**
       
    53 	 * Class name where this string is defined
       
    54 	 */
       
    55 	private String className;
       
    56 
       
    57 	/**
       
    58 	 * Constructor
       
    59 	 * 
       
    60 	 * @param id
       
    61 	 *            id of the trace
       
    62 	 * @param name
       
    63 	 *            name of the trace
       
    64 	 * @param traceData
       
    65 	 *            trace data
       
    66 	 * @param location
       
    67 	 *            trace location
       
    68 	 * @param lineNum
       
    69 	 *            line number where trace is defined
       
    70 	 * @param methodName
       
    71 	 *            method name where trace is defined
       
    72 	 * @param className
       
    73 	 *            class name where trace is defined
       
    74 	 * @param group
       
    75 	 *            group where trace belongs to
       
    76 	 */
       
    77 	public Trace(int id, String name, TraceData traceData, Location location,
       
    78 			int lineNum, String methodName, String className, TraceGroup group) {
       
    79 		super(id, name);
       
    80 		this.traceData = traceData;
       
    81 		this.location = location;
       
    82 		this.lineNumber = lineNum;
       
    83 		this.methodName = methodName;
       
    84 		this.className = className;
       
    85 		this.group = group;
       
    86 	}
       
    87 
       
    88 	/**
       
    89 	 * Gets the class name
       
    90 	 * 
       
    91 	 * @return the className
       
    92 	 */
       
    93 	public String getClassName() {
       
    94 		return className;
       
    95 	}
       
    96 
       
    97 	/**
       
    98 	 * Sets the class name
       
    99 	 * 
       
   100 	 * @param className
       
   101 	 *            the className to set
       
   102 	 */
       
   103 	public void setClassName(String className) {
       
   104 		this.className = className;
       
   105 	}
       
   106 
       
   107 	/**
       
   108 	 * Gets the line number
       
   109 	 * 
       
   110 	 * @return the lineNumber
       
   111 	 */
       
   112 	public int getLineNumber() {
       
   113 		return lineNumber;
       
   114 	}
       
   115 
       
   116 	/**
       
   117 	 * Sets the line number
       
   118 	 * 
       
   119 	 * @param lineNumber
       
   120 	 *            the lineNumber to set
       
   121 	 */
       
   122 	public void setLineNumber(int lineNumber) {
       
   123 		this.lineNumber = lineNumber;
       
   124 	}
       
   125 
       
   126 	/**
       
   127 	 * Gets the location
       
   128 	 * 
       
   129 	 * @return the location
       
   130 	 */
       
   131 	public Location getLocation() {
       
   132 		return location;
       
   133 	}
       
   134 
       
   135 	/**
       
   136 	 * Sets the location
       
   137 	 * 
       
   138 	 * @param location
       
   139 	 *            the location to set
       
   140 	 */
       
   141 	public void setLocation(Location location) {
       
   142 		this.location = location;
       
   143 	}
       
   144 
       
   145 	/**
       
   146 	 * Gets the method name
       
   147 	 * 
       
   148 	 * @return the methodName
       
   149 	 */
       
   150 	public String getMethodName() {
       
   151 		return methodName;
       
   152 	}
       
   153 
       
   154 	/**
       
   155 	 * Sets the method name
       
   156 	 * 
       
   157 	 * @param methodName
       
   158 	 *            the methodName to set
       
   159 	 */
       
   160 	public void setMethodName(String methodName) {
       
   161 		this.methodName = methodName;
       
   162 	}
       
   163 
       
   164 	/**
       
   165 	 * Gets the trace data
       
   166 	 * 
       
   167 	 * @return the traceData
       
   168 	 */
       
   169 	public TraceData getTraceData() {
       
   170 		return traceData;
       
   171 	}
       
   172 
       
   173 	/**
       
   174 	 * Sets the trace data
       
   175 	 * 
       
   176 	 * @param traceData
       
   177 	 *            the traceData to set
       
   178 	 */
       
   179 	public void setTraceData(TraceData traceData) {
       
   180 		this.traceData = traceData;
       
   181 	}
       
   182 
       
   183 	/**
       
   184 	 * Gets the parent group
       
   185 	 * 
       
   186 	 * @return the group
       
   187 	 */
       
   188 	public TraceGroup getGroup() {
       
   189 		return group;
       
   190 	}
       
   191 
       
   192 }