Class: JavaMappingFile

Inherits:
JavaMapping show all
Includes:
Singleton
Defined in:
lib/ontomde-uml2-java/javaMapping.rb

Constant Summary collapse

MATCHING_UML_NAME =
["file"]

Instance Attribute Summary

Attributes inherited from JavaMapping

#maxStringLength

Instance Method Summary collapse

Methods inherited from JavaMapping

#getGroovyCast, #getMappings, #getTemplate, #getValidationRegexp, #initialize

Constructor Details

This class inherits a constructor from JavaMapping

Instance Method Details

#appliesTo?(datatype) ⇒ Boolean

Returns:

  • (Boolean)


168
169
170
171
172
173
# File 'lib/ontomde-uml2-java/javaMapping.rb', line 168

def appliesTo?(datatype)
  return false unless datatype.kind_of?(Muml_DataType)
  return true if MATCHING_UML_NAME.include?(datatype.uml_name_one)
  #return datatype.struts_isBlob?
  #return ["image"].include?(datatype.java_qualifiedName)
end

#getJavaTypeObject

return datatype.struts_isBlob? return [“image”].include?(datatype.java_qualifiedName)



174
175
176
# File 'lib/ontomde-uml2-java/javaMapping.rb', line 174

def getJavaType
  return "java.lang.Object"
end