Umple | String bookTitle; | ||
Drools Transformation Rule | Rule "VariableDeclaration" Dialect "java" when $st : SyntaxTree(status==SyntaxTree.VAR_DECLARE) then TypeDeclaration type=AST2Android.Variable_Decl($st.getType()); CompilationUnit cu=$st.getCu(); $st.setStatus(SyntaxTree.ACTIVITY_CREATE); $st.setType(type); $st.setCu(cu); update($st); end | ||
Generated Code | POJO (Model Layer) | XML (View Layer) | Android (Controller Layer) |
String bookTitle; PublicvoidsetBookTitle(String bt){ bookTitle=bt;} public String getBookTitle(){ return bookTitle;} } | "@+id/ txtbookTitle" android:layout_height= "wrap_content" android:layout_width= "wrap_content"/> | private EditText txtbookTitle; private String bookTitle; txtbookTitle=(EditText)findViewById(R.id.txtbookTitle); | |
Generated UI |
| ||
Generated Persistency Layer | db.execSQL("CREATE TABLE IF NOT EXISTS Books Table (BooksID Integer PRIMARY KEY AUTOINCREMENT, book Title String);"); |