Class: JavaMappingInteger

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

Constant Summary collapse

MATCHING_UML_NAME =
["integer","Integer","int"]

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

MATCHING_JAVA_NAME=[]

Returns:

  • (Boolean)


127
128
129
130
131
# File 'lib/ontomde-uml2-java/javaMapping.rb', line 127

def appliesTo?(datatype)
  return true if MATCHING_UML_NAME.include?(datatype.uml_name_one)
  #	return true if MATCHING_JAVA_NAME.include?(datatype.java_qualifiedName)
  return false
end

#getJavaTypeObject



134
135
136
# File 'lib/ontomde-uml2-java/javaMapping.rb', line 134

def getJavaType
  return "int"
end