Class: JavaMappingBoolean
- Inherits:
-
JavaMapping
- Object
- JavaMapping
- JavaMappingBoolean
- Includes:
- Singleton
- Defined in:
- lib/ontomde-uml2-java/javaMapping.rb
Constant Summary collapse
- MATCHING_UML_NAME =
["Boolean","boolean"]
- STRUTS_BEAN_KEY =
name of the key used by struts to referece current bean in session.
"org.apache.struts.taglib.html.BEAN"
Instance Attribute Summary
Attributes inherited from JavaMapping
Instance Method Summary collapse
-
#appliesTo?(datatype) ⇒ Boolean
MATCHING_JAVA_NAME=[].
- #getJavaType ⇒ Object
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=[]
183 184 185 186 187 |
# File 'lib/ontomde-uml2-java/javaMapping.rb', line 183 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
194 195 196 |
# File 'lib/ontomde-uml2-java/javaMapping.rb', line 194 def getJavaType return "boolean" end |