Module: Muml_EnumerationLiteral

Includes:
Mjava_Annotation
Defined in:
lib/ontomde-java/java/xsd.rb,
lib/ontomde-java/java/java.rb,
lib/ontomde-java/java/javadoc.rb

Instance Method Summary collapse

Methods included from Mjava_Annotation

#java_writeAnnotation, #java_writeMdatkAnno, #java_writeParamAnnotation

Instance Method Details

#java_writeObject



48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/ontomde-java/java/java.rb', line 48

def java_write
  java_writeJavadoc
  java_writeAnnotation
  java_writeMdatkAnno(['javadoc','annotations']) if context[:hasGlobalReverse]
  write(java_Name)
  if !java_initParameterValue.empty?
    sep=("(")
    java_initParameterValue.each {|v|
      write(sep) ; sep=","
      write(v)
    }
    write(")")
  end
end

#java_writeJavadocObject



180
181
182
183
184
185
186
187
188
189
190
191
192
193
# File 'lib/ontomde-java/java/javadoc.rb', line 180

def java_writeJavadoc
  return unless context[:javadoc]
  c=""
  uml_ownedComment.each { |comment|
    c="#{c} #{comment.uml_body_one}"
  }
  mtk_protected(Mrdf_Resource::NOREVERSE,"javadoc",context[:hasGlobalReverse]||context[:hideJavadocReverseTag]) {
    unless c.empty?
      write("\t/**\n");
      c.java_writeJavadoc(self)
      write("\t */\n")
    end
  }
end