Class: JavaMappingFile
- Inherits:
-
JavaMapping
- Object
- JavaMapping
- JavaMappingFile
- Includes:
- Singleton
- Defined in:
- lib/ontomde-uml2-java/javaMapping.rb
Constant Summary collapse
- MATCHING_UML_NAME =
["file"]
Instance Attribute Summary
Attributes inherited from JavaMapping
Instance Method Summary collapse
- #appliesTo?(datatype) ⇒ Boolean
-
#getJavaType ⇒ Object
return datatype.struts_isBlob? return [“image”].include?(datatype.java_qualifiedName).
Methods inherited from JavaMapping
#getGroovyCast, #getMappings, #getTemplate, #getValidationRegexp, #initialize
Constructor Details
This class inherits a constructor from JavaMapping
Instance Method Details
#appliesTo?(datatype) ⇒ 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 |
#getJavaType ⇒ Object
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 |