Class: JavaMappingCallback

Inherits:
JavaMapping
  • Object
show all
Includes:
Singleton
Defined in:
lib/ontomde-uml2-jpdl/main.rb

Constant Summary collapse

MATCHING_UML_NAME =
["XmdaCallbackHandler"]

Instance Method Summary collapse

Instance Method Details

#appliesTo?(datatype) ⇒ Boolean

Returns:

  • (Boolean)


323
324
325
326
327
# File 'lib/ontomde-uml2-jpdl/main.rb', line 323

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

#getJavaParse(jsrc) ⇒ Object



336
337
338
# File 'lib/ontomde-uml2-jpdl/main.rb', line 336

def getJavaParse(jsrc)
  return "null"
end

#getJavaToString(jsrc) ⇒ Object



333
334
335
# File 'lib/ontomde-uml2-jpdl/main.rb', line 333

def getJavaToString(jsrc)
  return "null"
end

#getJavaTypeObject



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

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