Class: DatatypeMappingText
- Inherits:
-
DatatypeMapping
- Object
- DatatypeMapping
- DatatypeMappingText
- Includes:
- Singleton
- Defined in:
- lib/ontomde-uml2/UMLdatatypeMapping.rb,
lib/ontomde-uml2/kb/datatypeMapping.rb
Direct Known Subclasses
DatatypeMappingEmailAddress, DatatypeMappingLargeText, DatatypeMappingMimeType, DatatypeMappingOrdinal, DatatypeMappingPassword, DatatypeMappingURL
Constant Summary collapse
- MATCHING_UML_NAME =
["String","string"]
Instance Attribute Summary
Attributes inherited from DatatypeMapping
Instance Method Summary collapse
Methods inherited from DatatypeMapping
#getMapping, #getMappings, #getValidationRegexp, #initialize
Constructor Details
This class inherits a constructor from DatatypeMapping
Instance Method Details
#appliesTo?(datatype) ⇒ Boolean
134 135 136 137 138 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 134 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 |
#getHelp ⇒ Object
140 141 142 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 140 def getHelp return "any string of any length and any content displayable on one line." end |
#prot_getProtegeType ⇒ Object
8 9 10 |
# File 'lib/ontomde-uml2/kb/datatypeMapping.rb', line 8 def prot_getProtegeType return Muml_PrimitiveType::PROTEGE_STRING_DATATYPE end |