Module: Muml_Parameter

Includes:
Mjava_Annotation
Defined in:
lib/ontomde-java/java/xsd.rb,
lib/ontomde-java/flex/main.rb,
lib/ontomde-java/java/java.rb,
lib/ontomde-java/java/operationAsClass.rb

Instance Method Summary collapse

Methods included from Mjava_Annotation

#java_writeAnnotation, #java_writeMdatkAnno, #java_writeParamAnnotation

Instance Method Details

#as_writeObject



111
112
113
114
115
# File 'lib/ontomde-java/flex/main.rb', line 111

def as_write
        write(" #{as_Name}:") unless uml_direction_one.isReturn?
        write("#{as_propertyAssociationType} ")
        #write(" /* #{uml_lowerValue}..#{uml_upperValue}*/ ")
end

#java_writeObject

write java parameter declaration (Uses java_propertyRoleType, java_Name) parameter is declared final if direction is in (not out, not inOut) Example:

  • int x

  • final int x

  • String z



78
79
80
81
82
83
# File 'lib/ontomde-java/java/java.rb', line 78

def java_write
  write("final ") if uml_direction_one.isIn? # the best we can do with java
  write("#{java_propertyAssociationType} ")
  #write(" /* #{uml_lowerValue}..#{uml_upperValue}*/ ")
  write("#{java_Name}") unless uml_direction_one.isReturn?
end

#xsd_writeObject

write java parameter declaration (Uses xsd_propertyRoleType, xsd_Name) parameter is declared final if direction is in (not out, not inOut) Example:

  • int x

  • final int x

  • String z



262
263
264
265
266
267
# File 'lib/ontomde-java/java/xsd.rb', line 262

def xsd_write
  write("final ") if uml_direction_one.isIn? # the best we can do with java
  write("#{xsd_propertyAssociationType} ")
  #write(" /* #{uml_lowerValue}..#{uml_upperValue}*/ ")
  write(" #{xsd_Name}") unless uml_direction_one.isReturn?
end