Module: Muml_Model
- Defined in:
- lib/ontomde-java/java/xsd.rb,
lib/ontomde-java/java/java.rb,
lib/ontomde-java/struts/localeAction.rb
Instance Method Summary collapse
- #java_generateModel ⇒ Object
- #struts_ActionLocaleWriteActionPath ⇒ Object
- #struts_addActionLocaleForm! ⇒ Object
Instance Method Details
#java_generateModel ⇒ Object
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/ontomde-java/java/java.rb', line 161 def java_generateModel mtk_default_context(:java_generateSetAttributeInitializer=>true) { a=Array.new uml_Class_all.each {|c| #next if c.kind_of?(Muml_Stereotype) next unless c.kind_of?(Muml_Class) || c.kind_of?(Muml_Interface)||c.kind_of?(Muml_Enumeration) # only generate if requested to do so # usefull for generating separtely tests dans model next if c.java_isATestFile? && !context[:includeTestFiles] next if (!c.java_isATestFile?) && context[:excludeNonTestFiles] a.push(c) } if context[:generateComponent] uml_Component_all.each { |c| a.push(c) } end a.eachInThread(self) { |cl| cl.java_generateClassifier } } end |
#struts_ActionLocaleWriteActionPath ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/ontomde-java/struts/localeAction.rb', line 53 def struts_ActionLocaleWriteActionPath write(%{ <action path="#{STRUTS_ACTION_LOCALE_URL}" type="org.apache.struts.actions.LocaleAction" name="#{STRUTS_ACTION_LOCALE_FORM}" validate="false" cancellable="true" success="/Welcome" > }) end |
#struts_addActionLocaleForm! ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/ontomde-java/struts/localeAction.rb', line 35 def struts_addActionLocaleForm! form=umlx_getOrCreateClass(::Mrdf_Repository::STRUTS_ACTION_LOCALE_FORM) return unless form.uml_ownedAttribute.empty? form.java_makeSerializable! af=umlx_getOrCreateClass("org.apache.struts.action.ActionForm") form.umlx_createAndAddGeneralization(af) form.umlx_external=RDF_FALSE form.db_isTransient=RDF_TRUE form.apaCom_addLogger! form.struts_isForm=RDF_TRUE form.struts_addActionLocaleFormFields! form.java_addAccessors! end |