blob: f9576f53e69cf244a0892f56e7c0d31c652dd2a0 [file] [log] [blame]
/**
*
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*/
package org.eclipse.osbp.preferences;
public abstract class AItemDescribed implements IItemDescribed {
public class SubItem {
protected final String action;
protected final String information;
protected final String icon;
public SubItem(String action, String information, String icon) {
this.action = action;
this.information = information;
this.icon = icon;
}
public String getAction() {
return action;
}
public String getInformation() {
return information;
}
public String getIcon() {
return icon;
}
}
// private final ItemDescription fDescription; // NOSONAR
protected static final String VALUE_SEPARATOR = ":";
protected static final String ITEM_SEPARATOR = ";";
public AItemDescribed(ItemDescription description) {
// fDescription = description; // NOSONAR
}
protected abstract String _serialize(); // NOSONAR
protected abstract AItemDescribed _deserialize(String serialized); // NOSONAR
public abstract SubItem[] getSubItems();
public abstract String getIconName();
public abstract String getRowName();
}