String name = PROP_BASEDIR_VALUECONTEXT;
String description = "Identifies where the named value can be found.";
boolean required = true;
PropertySimpleType type = PropertySimpleType.STRING;
PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
pd.setDisplayName("Value Context");
pd.setReadOnly(readOnly);
pd.setSummary(true);
pd.setOrder(0);
PropertyDefinitionEnumeration pcEnum = new PropertyDefinitionEnumeration(
BaseDirValueContext.pluginConfiguration.name(), BaseDirValueContext.pluginConfiguration.name());
pcEnum.setOrderIndex(0);
PropertyDefinitionEnumeration rcEnum = new PropertyDefinitionEnumeration(
BaseDirValueContext.resourceConfiguration.name(), BaseDirValueContext.resourceConfiguration.name());
rcEnum.setOrderIndex(1);
PropertyDefinitionEnumeration mtEnum = new PropertyDefinitionEnumeration(BaseDirValueContext.measurementTrait
.name(), BaseDirValueContext.measurementTrait.name());
mtEnum.setOrderIndex(2);
PropertyDefinitionEnumeration fsEnum = new PropertyDefinitionEnumeration(BaseDirValueContext.fileSystem.name(),
BaseDirValueContext.fileSystem.name());
fsEnum.setOrderIndex(3);
ArrayList<PropertyDefinitionEnumeration> pdEnums = new ArrayList<PropertyDefinitionEnumeration>(4);
pdEnums.add(pcEnum);
pdEnums.add(rcEnum);
pdEnums.add(mtEnum);
pdEnums.add(fsEnum);
pd.setEnumeratedValues(pdEnums, false);
return pd;
}