Class: DatatypeMappingMimeType
- Inherits:
-
DatatypeMappingText
- Object
- DatatypeMapping
- DatatypeMappingText
- DatatypeMappingMimeType
- Includes:
- Singleton
- Defined in:
- lib/ontomde-uml2/UMLdatatypeMapping.rb,
lib/ontomde-uml2/kb/datatypeMapping.rb
Constant Summary collapse
- MATCHING_UML_NAME =
['mimetype']
Instance Attribute Summary
Attributes inherited from DatatypeMapping
Instance Method Summary collapse
Methods inherited from DatatypeMappingText
#initialize, #prot_getProtegeType
Methods inherited from DatatypeMapping
#getMapping, #getMappings, #getValidationRegexp, #initialize, #prot_getProtegeType, #register
Constructor Details
This class inherits a constructor from DatatypeMappingText
Instance Method Details
#appliesTo?(datatype) ⇒ Boolean
173 174 175 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 173 def appliesTo?(datatype) return true if MATCHING_UML_NAME.include?(datatype.uml_name_one.downcase) end |
#getHelp ⇒ Object
177 178 179 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 177 def getHelp return "string defining a mime type" end |