package <%= base_package %>.models.presentation { import <%= base_package %>.models.domain.<%= class_name %>; import <%= base_package %>.models.constant.Resource; import org.restfulx.models.ModelsCollection; public class <%= class_name.pluralize %>Model extends ResourcesModel { private var _<%= class_name.dcfirst %>Dirty; [Bindable] public function get <%= class_name.dcfirst %>Dirty():Boolean { return _<%= class_name.dcfirst %>Dirty; } public function set <%= class_name.dcfirst %>Dirty(value:Boolean):void { _<%= class_name.dcfirst %>Dirty = value; } private var _<%= class_name.dcfirst %>:<%= class_name %>; [Bindable] public function get <%= class_name.dcfirst %>():<%= class_name %> { return _<%= class_name.dcfirst %>; } public function set <%= class_name.dcfirst %>(value:<%= class_name %>):void { _<%= class_name.dcfirst %> = value; } private var _<%= class_name.pluralize.dcfirst %>:ModelsCollection; public function get <%= class_name.pluralize.dcfirst %>():ModelsCollection { return _<%= class_name.pluralize.dcfirst %>; } public function set <%= class_name.pluralize.dcfirst %>(value:ModelsCollection):void { _<%= class_name.pluralize.dcfirst %> = value; } public function <%= class_name.pluralize %>Model() { <%= class_name.dcfirst %> = new <%= class_name %>(); resourceName = Resource.<%= class_name.upcase %>; } } }