public static String getSearchOperator(Property property) { String stereotype = MdaStereotype.view_Search; String attribute = SearchAnnotations.operator.toString(); EnumerationLiteral enumerationLiteral = (EnumerationLiteral) StereotypeHelper.getValue(property, stereotype, attribute); if (null != enumerationLiteral) { return enumerationLiteral.getName(); } return null; }
/** @generated */ public void init_EnumerationLiteral_3005(EnumerationLiteral instance) { try { Object value_0 = UMLOCLFactory.getExpression(10, UMLPackage.eINSTANCE.getEnumerationLiteral(), null) .evaluate(instance); instance.setName((String) value_0); } catch (RuntimeException e) { UMLDiagramEditorPlugin.getInstance() .logError("Element initialization failed", e); // $NON-NLS-1$ } }