trace/tracebuilder/com.nokia.tracebuilder/src/com/nokia/tracebuilder/engine/propertyfile/TraceObjectPropertyImpl.java
changeset 10 ed1c9f64298a
equal deleted inserted replaced
9:14dc2103a631 10:ed1c9f64298a
       
     1 /*
       
     2 * Copyright (c) 2007 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 * Implementation of the property interface
       
    17 *
       
    18 */
       
    19 package com.nokia.tracebuilder.engine.propertyfile;
       
    20 
       
    21 import com.nokia.tracebuilder.model.TraceObjectProperty;
       
    22 
       
    23 /**
       
    24  * Implementation of the property interface
       
    25  * 
       
    26  */
       
    27 class TraceObjectPropertyImpl implements TraceObjectProperty {
       
    28 
       
    29 	/**
       
    30 	 * Property name
       
    31 	 */
       
    32 	private String name;
       
    33 
       
    34 	/**
       
    35 	 * Property value
       
    36 	 */
       
    37 	private String value;
       
    38 
       
    39 	/**
       
    40 	 * Constructor
       
    41 	 * 
       
    42 	 * @param name
       
    43 	 *            the property name
       
    44 	 * @param value
       
    45 	 *            the property value
       
    46 	 */
       
    47 	TraceObjectPropertyImpl(String name, String value) {
       
    48 		this.name = name;
       
    49 		this.value = value;
       
    50 	}
       
    51 
       
    52 	/*
       
    53 	 * (non-Javadoc)
       
    54 	 * 
       
    55 	 * @see com.nokia.tracebuilder.model.TraceObjectProperty#getName()
       
    56 	 */
       
    57 	public String getName() {
       
    58 		return name;
       
    59 	}
       
    60 
       
    61 	/*
       
    62 	 * (non-Javadoc)
       
    63 	 * 
       
    64 	 * @see com.nokia.tracebuilder.model.TraceObjectProperty#getValue()
       
    65 	 */
       
    66 	public String getValue() {
       
    67 		return value;
       
    68 	}
       
    69 
       
    70 	/*
       
    71 	 * (non-Javadoc)
       
    72 	 * 
       
    73 	 * @see java.lang.Object#toString()
       
    74 	 */
       
    75 	@Override
       
    76 	public String toString() {
       
    77 		String separator = Messages
       
    78 				.getString("TraceObjectPropertyImpl.NameValueSeparator"); //$NON-NLS-1$
       
    79 		return name + separator + value;
       
    80 	}
       
    81 
       
    82 }