1
/*******************************************************************************
2
* Copyright (c) 2007, 2010 Intel Corporation and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Intel Corporation - Initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.core.settings.model.extension;
13
import org.eclipse.cdt.core.settings.model.ICSettingBase;
15
public abstract class CDataObject implements ICSettingBase{
19
public abstract String getId();
21
public abstract String getName();
23
public abstract boolean isValid();
25
public CConfigurationData getConfiguration(){
26
return fConfiguration;
29
void setConfiguration(CConfigurationData cfg){
33
public abstract int getType();
36
* Intended for debugging purpose only.
39
@SuppressWarnings("nls")
40
public String toString() {
44
case SETTING_PROJECT: strType="SETTING_PROJECT"; break;
45
case SETTING_CONFIGURATION: strType="SETTING_CONFIGURATION"; break;
46
case SETTING_FOLDER: strType="SETTING_FOLDER"; break;
47
case SETTING_FILE: strType="SETTING_FILE"; break;
48
case SETTING_LANGUAGE: strType="SETTING_LANGUAGE"; break;
49
case SETTING_TARGET_PLATFORM: strType="SETTING_TARGET_PLATFORM"; break;
50
case SETTING_BUILD: strType="SETTING_BUILD"; break;
52
return "type=0x" + Integer.toHexString(type)+":"+strType
53
+ ", name=["+getName()+"]"
54
+ ", id=["+getId()+"]";