Class: JavaMappingLongObject
- Inherits:
-
JavaMappingOrdinal
- Object
- JavaMapping
- JavaMappingText
- JavaMappingOrdinal
- JavaMappingLongObject
- Defined in:
- lib/ontomde-uml2-struts/mappingForBean.rb
Instance Method Summary collapse
Methods inherited from JavaMappingOrdinal
#struts_edit_writeFieldGeneric_DisplayTable_displayTag_column
Methods inherited from JavaMappingText
#getJSP, #struts_edit_writeFieldGeneric_DisplayTable_displayTag_column
Methods inherited from JavaMapping
#addActionFieldMethod!, #getFormCopyTo, #getFormInitFrom, #getFormType, #getJSP, #java_Name, #java_helper_addMethods!, #java_helper_customCode, #java_qualifiedName, #rdf_uri, #struts_edit_writeFieldGeneric_DisplayTable_displayTag_column, #struts_generateHelper
Instance Method Details
#getJavaParse(jsrc) ⇒ Object
61 62 63 |
# File 'lib/ontomde-uml2-struts/mappingForBean.rb', line 61 def getJavaParse(jsrc) return "((Long)Long.parseLong(#{jsrc}))" end |
#getJavaToString(jsrc) ⇒ Object
57 58 59 60 |
# File 'lib/ontomde-uml2-struts/mappingForBean.rb', line 57 def getJavaToString(jsrc) # cast is to make sure we have a Long and avoid difficult debugging return "((Long)#{jsrc}).toString()" end |