Class: DatatypeMappingGRAPHVIZ
- Inherits:
-
DatatypeMappingLargeText
show all
- Defined in:
- lib/ontomde-java/struts/jsp_edit.rb,
lib/ontomde-java/struts/mappingForJsp.rb,
lib/ontomde-java/struts/mappingForBean.rb,
lib/ontomde-java/java/xsdDatatypeMapping.rb,
lib/ontomde-java/java/javaDatatypeMapping.rb
Instance Method Summary
collapse
#flex_prefix, #flex_writeMXML_Form_item_property, #flex_writeMXML_Form_item_property_column, #flex_writeMXML_MXvalidator, #flex_writeMXML_vo_mapping, #flex_writeVO_getParameter, #flex_writeVO_initFromXML_mapping, #flex_writeVO_initItemFromXML_mapping, #flex_writeVO_vars_datatype, #getFormCopyTo, #getFormInitFrom, #java_getJavaParse, #java_getJavaToString, #java_getType, #prot_convertToJava, #xsd_getType
#crank_validation_annotation, #flex_writeMXML_Form_item_property, #flex_writeMXML_Form_item_property_column, #flex_writeMXML_MXvalidator, #flex_writeMXML_validate, #flex_writeMXML_vo_mapping, #flex_writeVO_getParameter, #flex_writeVO_initFromXML_mapping, #flex_writeVO_initItemFromXML_mapping, #flex_writeVO_vars_datatype, #getFormCopyTo, #getFormInitFrom, #getFormType, #java_Name, #java_getType, #java_helper_addMethods!, #java_helper_customCode, #java_qualifiedName, #jpa_addTypeModificator, #prot_init, #rdf_uri, #struts_generateHelper, #xsd_getType
Instance Method Details
#actionMapMethName(field) ⇒ Object
235
236
237
|
# File 'lib/ontomde-java/struts/mappingForJsp.rb', line 235
def actionMapMethName(field)
return "#{field.java_Name}_map"
end
|
#actionMapUrl(datatype, field, owner) ⇒ Object
238
239
240
|
# File 'lib/ontomde-java/struts/mappingForJsp.rb', line 238
def actionMapUrl(datatype,field,owner)
return "/webapp/GraphVizDemoall-submit.do?#{Muml_Classifier::STRUTS_DISPATCH_FIELD_NAME}=#{actionMapMethName(field)}#myMap"
end
|
#actionMethName(field) ⇒ Object
232
233
234
|
# File 'lib/ontomde-java/struts/mappingForJsp.rb', line 232
def actionMethName(field)
return "#{field.java_Name}_img"
end
|
#addActionFieldMethod!(field, action, form) ⇒ Object
adds special action for this type
248
249
250
251
252
253
254
255
256
257
258
259
260
261
|
# File 'lib/ontomde-java/struts/mappingForJsp.rb', line 248
def addActionFieldMethod!(field,action,form)
m=action.struts_createAndAddExecuteOperation(actionMethName(field))
m.java_code=<<END
#{action.struts_formCastJavaCode(form)}
return #{action.struts_getActionHelper.java_qualifiedName}.writeGraphviz(mapping,response, form.getReference().get#{field.java_NameBean}());
END
m2=action.struts_createAndAddExecuteOperation(actionMapMethName(field))
m2.java_code=<<END
#{action.struts_formCastJavaCode(form)}
return #{action.struts_getActionHelper.java_qualifiedName}.writeGraphvizMap(mapping,response, form.getReference().get#{field.java_NameBean}());
END
end
|
#getJSP(datatype, field, owner) ⇒ Object
241
242
243
244
245
|
# File 'lib/ontomde-java/struts/mappingForJsp.rb', line 241
def getJSP(datatype,field,owner)
s=field.uml_isReadOnly? ? "" : super(datatype,field,owner)
return %{#{s}#{s.empty? ? "" : "<br>" }<html:img action="#{owner.context[:strutsActionName]}?#{Muml_Classifier::STRUTS_DISPATCH_FIELD_NAME}=#{actionMethName(field)}" usemap="#{actionMapUrl(datatype,field,owner)}"/>}
end
|
#java_getUndefinedValue ⇒ Object
180
181
182
|
# File 'lib/ontomde-java/java/javaDatatypeMapping.rb', line 180
def java_getUndefinedValue
return %{"digraph {\\n u1 [label=\\"graphviz script generation method\\"]\\n u2[label=\\"is not yet\\"]\\n u3[label=\\"implemented in this project\\"] \\n u1->u2->u3\\n}"}
end
|
#struts_edit_writeFieldGeneric_DisplayTable_displayTag_column(prop) ⇒ Object
893
894
895
896
|
# File 'lib/ontomde-java/struts/jsp_edit.rb', line 893
def struts_edit_writeFieldGeneric_DisplayTable_displayTag_column(prop)
prop.write %{<%-- skip graphviz field #{prop.java_Name} --%>\n}
end
|