Class: DatatypeMappingCallback

Inherits:
DatatypeMapping show all
Includes:
Singleton
Defined in:
lib/ontomde-java/jpdl/main.rb

Constant Summary collapse

MATCHING_UML_NAME =
["XmdaCallbackHandler"]

Instance Method Summary collapse

Methods inherited from DatatypeMapping

#addActionFieldMethod!, #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, #getJSP, #java_Name, #java_getUndefinedValue, #java_helper_addMethods!, #java_helper_customCode, #java_qualifiedName, #jpa_addTypeModificator, #prot_init, #rdf_uri, #struts_edit_writeFieldGeneric_DisplayTable_displayTag_column, #struts_generateHelper, #xsd_getType

Instance Method Details

#appliesTo?(datatype) ⇒ Boolean

Returns:

  • (Boolean)


329
330
331
332
333
# File 'lib/ontomde-java/jpdl/main.rb', line 329

def appliesTo?(datatype)
  return true if MATCHING_UML_NAME.include?(datatype.uml_name_one)
  #return true if MATCHING_JAVA_NAME.include?(datatype.java_qualifiedName)
  return false
end

#java_getJavaParse(jsrc) ⇒ Object



342
343
344
# File 'lib/ontomde-java/jpdl/main.rb', line 342

def java_getJavaParse(jsrc)
  return "null"
end

#java_getJavaToString(jsrc) ⇒ Object



339
340
341
# File 'lib/ontomde-java/jpdl/main.rb', line 339

def java_getJavaToString(jsrc)
  return "null"
end

#java_getTypeObject



335
336
337
# File 'lib/ontomde-java/jpdl/main.rb', line 335

def java_getType
  return "xmda.bpm.api.XmdaCallbackHandler"
end