UnsupportedOperationException()を返してしまう。
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void sample() {
- // TODO: implement this method
- // Ensure that you remove @generated or mark it @generated NOT
- throw new UnsupportedOperationException();
- }
- <eannotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="body" value="return (rentBookRefered == null ) ? true : false;">
- </details></eannotations>
対応方法は
- eannotation
- 属性名:source
- 値http://www.eclipse.org/emf/2002/GenModel
- detailタグ
- 属性名:key
- 値:body
- 属性名:value
- operationの実装
これでデフォルトの実装が出力される。
これにより、モデルですべて実装まで定義できるようになります。