Class: JavaMappingText

Inherits:
JavaMapping show all
Defined in:
lib/ontomde-uml2-struts/jsp_edit.rb,
lib/ontomde-uml2-struts/mappingForJsp.rb,
lib/ontomde-uml2-struts/mappingForBean.rb

Instance Method Summary collapse

Methods inherited from JavaMapping

#addActionFieldMethod!, #getFormCopyTo, #getFormInitFrom, #getFormType, #java_Name, #java_helper_addMethods!, #java_helper_customCode, #java_qualifiedName, #rdf_uri, #struts_generateHelper

Instance Method Details

#getJavaParse(jsrc) ⇒ Object



33
34
35
# File 'lib/ontomde-uml2-struts/mappingForBean.rb', line 33

def getJavaParse(jsrc)
  return jsrc
end

#getJavaToString(jsrc) ⇒ Object



30
31
32
# File 'lib/ontomde-uml2-struts/mappingForBean.rb', line 30

def getJavaToString(jsrc)
  return jsrc
end

#getJSP(datatype, field, owner) ⇒ Object



20
21
22
23
# File 'lib/ontomde-uml2-struts/mappingForJsp.rb', line 20

def getJSP(datatype,field,owner)
  n=datatype.java_Name.downcase #TODO
  return %{<html:text property="#{field.java_Name}" size="20%" maxlength="#{self.maxStringLength}" styleId="#{n}" #{::Muml_DataType::STRUTS_ERROR_STYLE}/>}
end

#struts_edit_writeFieldGeneric_DisplayTable_displayTag_column(prop) ⇒ Object



816
817
818
# File 'lib/ontomde-uml2-struts/jsp_edit.rb', line 816

def struts_edit_writeFieldGeneric_DisplayTable_displayTag_column(prop)
  prop.write %{<display:column property="#{prop.java_Name}" titleKey="#{prop.umlx_owner_one.java_qualifiedName}.#{prop.java_Name}" />\n}
end