| package org.eclipse.epf.uma.util; |
| |
| import java.util.HashMap; |
| import java.util.Map; |
| |
| public class UserDefinedTypeMeta { |
| |
| public static final String Type_Practice = "Practice"; //$NON-NLS-1$ |
| |
| public static final String _typeName = "typeName"; //$NON-NLS-1$ |
| public static final String _problems = "problems"; //$NON-NLS-1$ |
| public static final String _goals = "goals"; //$NON-NLS-1$ |
| public static final String _background = "background"; //$NON-NLS-1$ |
| public static final String _mainDescription = "mainDescription"; //$NON-NLS-1$ |
| public static final String _application = "application"; //$NON-NLS-1$ |
| public static final String _levelsOfAdoption = "levelsOfAdoption"; //$NON-NLS-1$ |
| public static final String _additionalInfo = "additionalInfo"; //$NON-NLS-1$ |
| public static final String _icon = "icon"; //$NON-NLS-1$ |
| |
| public static String[] rteNames = { |
| _typeName, |
| _problems, |
| _goals, |
| _background, |
| _mainDescription, |
| _application, |
| _levelsOfAdoption, |
| _additionalInfo, |
| _icon |
| }; |
| |
| public static UserDefinedTypeMeta newPracticeUtdpeMeta(String typeName) { |
| UserDefinedTypeMeta meta = new UserDefinedTypeMeta(); |
| meta.setId(getPracticeUdtId(typeName)); //$NON-NLS-1$ |
| return meta; |
| } |
| |
| public static String getPracticeUdtId(String typeName) { |
| return Type_Practice + ":" + typeName; //$NON-NLS-1$ |
| } |
| |
| private Map<String, String> rteNameMap; |
| |
| private String id; |
| public UserDefinedTypeMeta() { |
| } |
| |
| public Map<String, String> getRteNameMap() { |
| if (rteNameMap == null) { |
| rteNameMap = new HashMap<String, String>(); |
| } |
| return rteNameMap; |
| } |
| |
| public String getId() { |
| return id; |
| } |
| |
| public void setId(String id) { |
| this.id = id; |
| } |
| } |