use of org.talend.core.model.properties.Status in project tdq-studio-se by Talend.
the class MetadataHelper method getDevStatus.
/**
* Method "getDevStatus". MOD mzhao feature 7479
*
* @param element such as Analysis, DataProvider...
* @return the development status of the element
*/
public static String getDevStatus(ModelElement element) {
TaggedValue taggedValue = TaggedValueHelper.getTaggedValue(TaggedValueHelper.DEV_STATUS, element.getTaggedValue());
if (taggedValue == null) {
List<org.talend.core.model.properties.Status> statusList = MetadataHelper.getTechnicalStatus();
if (statusList != null && statusList.size() > 0) {
return statusList.get(0).getLabel();
} else {
return DevelopmentStatus.DRAFT.getLiteral();
}
}
String statusValueString = taggedValue.getValue();
return statusValueString;
}
Aggregations