Class: JavaMappingBLOB
- Inherits:
-
JavaMapping
show all
- Defined in:
- lib/ontomde-uml2-struts/mappingForJsp.rb,
lib/ontomde-uml2-struts/mappingForBean.rb
Instance Method Summary
collapse
Methods inherited from JavaMapping
#addActionFieldMethod!, #java_Name, #java_helper_addMethods!, #java_helper_customCode, #java_qualifiedName, #rdf_uri, #struts_edit_writeFieldGeneric_DisplayTable_displayTag_column, #struts_generateHelper
Instance Method Details
119
120
121
|
# File 'lib/ontomde-uml2-struts/mappingForBean.rb', line 119
def getFormCopyTo(field)
return "try {_to.set#{field.java_NameBean}(get#{field.java_NameBean}().getFileData());\n} catch(java.io.FileNotFoundException e) {log.error(e);} catch(java.io.IOException e2){log.error(e2);}\n"
end
|
123
124
125
126
|
# File 'lib/ontomde-uml2-struts/mappingForBean.rb', line 123
def getFormInitFrom(field)
return ""
end
|
116
117
118
|
# File 'lib/ontomde-uml2-struts/mappingForBean.rb', line 116
def getFormType(field)
return field.umlx_getOrCreateClass("org.apache.struts.upload.FormFile")
end
|
#getJSP(datatype, field, owner) ⇒ Object
193
194
195
196
|
# File 'lib/ontomde-uml2-struts/mappingForJsp.rb', line 193
def getJSP(datatype,field,owner)
n=datatype.java_Name.downcase return %{<html:file property="#{field.java_Name}" size="20%" maxlength="30" styleId="#{n}" #{::Muml_DataType::STRUTS_ERROR_STYLE}/>}
end
|