Class: JavaMappingLong

Inherits:
JavaMappingOrdinal
  • Object
show all
Defined in:
lib/ontomde-uml2-kbjava/rdfToJava.rb

Instance Method Summary collapse

Instance Method Details

#prot_convertToJava(umlprop, valitem) ⇒ Object

Protege string to Java code conversions



348
349
350
351
# File 'lib/ontomde-uml2-kbjava/rdfToJava.rb', line 348

def prot_convertToJava(umlprop,valitem)
  #Remove leading 0 (octal)
  return valitem.gsub(/^0*([0-9])/,'\1')
end