Class: DatatypeMappingSimpleUnixPath
- Inherits:
-
DatatypeMappingText
- Object
- DatatypeMapping
- DatatypeMappingText
- DatatypeMappingSimpleUnixPath
- Includes:
- Singleton
- Defined in:
- lib/ontomde-uml2/UMLdatatypeMapping.rb
Constant Summary collapse
- MATCHING_UML_NAME =
["simpleunixpath"]
Instance Attribute Summary
Attributes inherited from DatatypeMapping
Instance Method Summary collapse
Methods inherited from DatatypeMappingText
#initialize, #prot_getProtegeType
Methods inherited from DatatypeMapping
#getMapping, #getMappings, #initialize, #prot_getProtegeType, #register
Constructor Details
This class inherits a constructor from DatatypeMappingText
Instance Method Details
#appliesTo?(datatype) ⇒ Boolean
432 433 434 435 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 432 def appliesTo?(datatype) return true if MATCHING_UML_NAME.include?(datatype.uml_name_one.downcase) return false end |
#getHelp ⇒ Object
444 445 446 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 444 def getHelp return "simple unix path (no relative, no space, no escape)" end |
#getValidationRegexp ⇒ Object
437 438 439 440 441 442 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 437 def getValidationRegexp # // not valid # ok: /a/b/c a a/b #nok: //a ./a/b return /([a-zA-Z0-9_%+-]\/?)*/ end |