Class: DatatypeMappingInteger
- Inherits:
-
DatatypeMappingOrdinal
- Object
- DatatypeMapping
- DatatypeMappingText
- DatatypeMappingOrdinal
- DatatypeMappingInteger
- Includes:
- Singleton
- Defined in:
- lib/ontomde-uml2/UMLdatatypeMapping.rb,
lib/ontomde-uml2/kb/datatypeMapping.rb
Constant Summary collapse
- MATCHING_UML_NAME =
['integer','int']
Instance Attribute Summary
Attributes inherited from DatatypeMapping
Instance Method Summary collapse
-
#appliesTo?(datatype) ⇒ Boolean
MATCHING_JAVA_NAME=[].
- #getHelp ⇒ Object
- #prot_getProtegeType ⇒ Object
Methods inherited from DatatypeMappingText
Methods inherited from DatatypeMapping
#getMapping, #getMappings, #getValidationRegexp, #initialize, #register
Constructor Details
This class inherits a constructor from DatatypeMappingText
Instance Method Details
#appliesTo?(datatype) ⇒ Boolean
MATCHING_JAVA_NAME=[]
194 195 196 197 198 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 194 def appliesTo?(datatype) return true if MATCHING_UML_NAME.include?(datatype.uml_name_one.downcase) # return true if MATCHING_JAVA_NAME.include?(datatype.java_qualifiedName) return false end |
#getHelp ⇒ Object
200 201 202 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 200 def getHelp return "any valid integer" end |
#prot_getProtegeType ⇒ Object
23 24 25 |
# File 'lib/ontomde-uml2/kb/datatypeMapping.rb', line 23 def prot_getProtegeType return Muml_PrimitiveType::PROTEGE_INTEGER_DATATYPE end |