Module: Muml_Interface

Defined in:
lib/ontomde-uml2-java/java.rb,
lib/ontomde-uml2-java/java.rb

Instance Method Summary collapse

Instance Method Details

#java_makeSerializable!Object



1225
1226
1227
1228
1229
# File 'lib/ontomde-uml2-java/java.rb', line 1225

def java_makeSerializable!
  #java_implements_add("java.io.Serializable");
  s=umlx_getOrCreateClass("java.io.Serializable")
  umlx_createAndAddGeneralization(s)
end

#java_writeImplementsObject

does nothing



460
461
# File 'lib/ontomde-uml2-java/java.rb', line 460

def java_writeImplements
end

#java_writeMetaClassNameObject

write java interface keyword and interface name

Example:

  • interface Interface1



467
468
469
# File 'lib/ontomde-uml2-java/java.rb', line 467

def java_writeMetaClassName
  write("interface #{java_Name}")
end