Class: JavaMappingText
- Inherits:
-
JavaMapping
- Object
- JavaMapping
- JavaMappingText
- Includes:
- Singleton
- Defined in:
- lib/ontomde-uml2-java/javaMapping.rb
Direct Known Subclasses
JavaMappingEmailAddress, JavaMappingLargeText, JavaMappingMimeType, JavaMappingOrdinal, JavaMappingPassword, JavaMappingURL
Constant Summary collapse
- MATCHING_UML_NAME =
["String","string"]
Instance Attribute Summary
Attributes inherited from JavaMapping
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
90 91 92 93 94 |
# File 'lib/ontomde-uml2-java/javaMapping.rb', line 90 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 |
#getJavaType ⇒ Object
96 97 98 |
# File 'lib/ontomde-uml2-java/javaMapping.rb', line 96 def getJavaType return "java.lang.String" end |