56
|
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 |
* Interface implemented by trace model extensions that need to store themselves
|
|
17 |
* into persistent storage along with other model elements
|
|
18 |
*
|
|
19 |
*/
|
|
20 |
package com.nokia.tracecompiler.model;
|
|
21 |
|
|
22 |
/**
|
|
23 |
* Interface implemented by trace model extensions that need to store themselves
|
|
24 |
* into persistent storage along with other model elements. The storage format
|
|
25 |
* is left to the implementation. When loading, the trace provider calls
|
|
26 |
* TraceObjectFactory.createExtension with the storage name. The object factory
|
|
27 |
* returns an instance of this interface and the provider calls setData to
|
|
28 |
* initialize this.
|
|
29 |
*
|
|
30 |
*/
|
|
31 |
public interface TraceModelPersistentExtension extends TraceModelExtension {
|
|
32 |
|
|
33 |
/**
|
|
34 |
* Gets the name used when storing this extension
|
|
35 |
*
|
|
36 |
* @return the storage name
|
|
37 |
*/
|
|
38 |
public String getStorageName();
|
|
39 |
|
|
40 |
/**
|
|
41 |
* Gets the data of this extension
|
|
42 |
*
|
|
43 |
* @return the extension data
|
|
44 |
*/
|
|
45 |
public String getData();
|
|
46 |
|
|
47 |
/**
|
|
48 |
* Sets the data of this extension
|
|
49 |
*
|
|
50 |
* @param data
|
|
51 |
* the data
|
|
52 |
* @return true if extension should be added to model, false if not
|
|
53 |
*/
|
|
54 |
public boolean setData(String data);
|
|
55 |
|
|
56 |
}
|