Search in sources :

Example 1 with DrawbacksLevel

use of fr.gouv.mindef.safran.graalextensions.DrawbacksLevel in project InformationSystem by ObeoNetwork.

the class RiskItemProvider method getText.

/**
 * This returns the label text for the adapted class.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
@Override
public String getText(Object object) {
    Risk riskObject = (Risk) object;
    BenefitsLevel benefitsValue = riskObject.getBenefits();
    String benefitsLabel = benefitsValue == null ? "" : benefitsValue.toString();
    DrawbacksLevel drawbacksValue = riskObject.getDrawbacks();
    String drawbacksLabel = drawbacksValue == null ? "" : drawbacksValue.toString();
    RiskLevel riskValue = riskObject.getRisk();
    String riskLabel = riskValue == null ? "" : riskValue.toString();
    String label = benefitsLabel + "/" + drawbacksLabel + "/" + riskLabel;
    return label == null || label.length() == 0 ? getString("_UI_Risk_type") : getString("_UI_Risk_type") + " " + label;
}
Also used : BenefitsLevel(fr.gouv.mindef.safran.graalextensions.BenefitsLevel) Risk(fr.gouv.mindef.safran.graalextensions.Risk) DrawbacksLevel(fr.gouv.mindef.safran.graalextensions.DrawbacksLevel) RiskLevel(fr.gouv.mindef.safran.graalextensions.RiskLevel)

Aggregations

BenefitsLevel (fr.gouv.mindef.safran.graalextensions.BenefitsLevel)1 DrawbacksLevel (fr.gouv.mindef.safran.graalextensions.DrawbacksLevel)1 Risk (fr.gouv.mindef.safran.graalextensions.Risk)1 RiskLevel (fr.gouv.mindef.safran.graalextensions.RiskLevel)1