Class: JavaMappingGenericEnum

Inherits:
JavaMapping show all
Defined in:
lib/ontomde-uml2-kbjava/rdfToJava.rb

Instance Method Summary collapse

Methods inherited from JavaMapping

#prot_init

Instance Method Details

#prot_convertToJava(umlprop, valitem) ⇒ Object

Protege string to Java code conversions



390
391
392
393
394
395
396
397
# File 'lib/ontomde-uml2-kbjava/rdfToJava.rb', line 390

def prot_convertToJava(umlprop,valitem)
  lit=nil
  umlprop.uml_type_one.uml_ownedLiteral.each { |i|
    next if i.to_s!=valitem.to_s
    lit=i
  }
  return "#{umlprop.uml_type_one.java_qualifiedName}.#{lit.java_Name}"
end