tracefw/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/engine/rules/ArrayParameterRuleImpl.java
changeset 56 aa2539c91954
parent 54 a151135b0cf9
child 60 e54443a6878c
child 62 1c2bb2fc7c87
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
     1 /*
       
     2 * Copyright (c) 2008 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 * Rule which defines a parameter as array type
       
    17 *
       
    18 */
       
    19 package com.nokia.tracecompiler.engine.rules;
       
    20 
       
    21 import com.nokia.tracecompiler.model.TraceModelPersistentExtension;
       
    22 import com.nokia.tracecompiler.rules.ArrayParameterRule;
       
    23 
       
    24 /**
       
    25  * Rule which defines a parameter as array type
       
    26  * 
       
    27  */
       
    28 final class ArrayParameterRuleImpl extends RuleBase implements
       
    29 		ArrayParameterRule, TraceModelPersistentExtension {
       
    30 
       
    31 	/**
       
    32 	 * Storage name for array parameter
       
    33 	 */
       
    34 	static final String STORAGE_NAME = "Array"; //$NON-NLS-1$
       
    35 
       
    36 	/*
       
    37 	 * (non-Javadoc)
       
    38 	 * 
       
    39 	 * @see com.nokia.tracecompiler.model.TraceModelPersistentExtension#getData()
       
    40 	 */
       
    41 	public String getData() {
       
    42 		return ""; //$NON-NLS-1$
       
    43 	}
       
    44 
       
    45 	/*
       
    46 	 * (non-Javadoc)
       
    47 	 * 
       
    48 	 * @see com.nokia.tracecompiler.model.TraceModelPersistentExtension#getStorageName()
       
    49 	 */
       
    50 	public String getStorageName() {
       
    51 		return STORAGE_NAME;
       
    52 	}
       
    53 
       
    54 	/*
       
    55 	 * (non-Javadoc)
       
    56 	 * 
       
    57 	 * @see com.nokia.tracecompiler.model.TraceModelPersistentExtension#
       
    58 	 *      setData(java.lang.String)
       
    59 	 */
       
    60 	public boolean setData(String data) {
       
    61 		return true;
       
    62 	}
       
    63 }