Module: Muml_Model

Defined in:
lib/ontomde-uml2-struts/localeAction.rb

Instance Method Summary collapse

Instance Method Details

#struts_ActionLocaleWriteActionPathObject



53
54
55
56
57
58
59
60
61
62
63
# File 'lib/ontomde-uml2-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-uml2-struts/localeAction.rb', line 35

def struts_addActionLocaleForm!
  form=umlx_getOrCreateClass(::Mrdf_Model::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