Class: DatatypeMappingLargeText
- Inherits:
-
DatatypeMappingText
- Object
- DatatypeMapping
- DatatypeMappingText
- DatatypeMappingLargeText
- Includes:
- Singleton
- Defined in:
- lib/ontomde-uml2/UMLdatatypeMapping.rb,
lib/ontomde-uml2/kb/datatypeMapping.rb
Direct Known Subclasses
Constant Summary collapse
- HELPMSG =
" "
- MATCHING_UML_NAME =
['largetext','longtext']
Instance Attribute Summary
Attributes inherited from DatatypeMapping
Instance Method Summary collapse
- #appliesTo?(datatype) ⇒ Boolean
- #getHelp ⇒ Object
-
#initialize ⇒ DatatypeMappingLargeText
constructor
A new instance of DatatypeMappingLargeText.
Methods inherited from DatatypeMappingText
Methods inherited from DatatypeMapping
#getMapping, #getMappings, #getValidationRegexp, #prot_getProtegeType, #register
Constructor Details
#initialize ⇒ DatatypeMappingLargeText
Returns a new instance of DatatypeMappingLargeText.
153 154 155 156 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 153 def initialize super @maxStringLength=5000 end |
Instance Method Details
#appliesTo?(datatype) ⇒ Boolean
159 160 161 162 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 159 def appliesTo?(datatype) return true if MATCHING_UML_NAME.include?(datatype.uml_name_one.downcase) return false end |
#getHelp ⇒ Object
164 165 166 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 164 def getHelp return "any string of any length and any content displayable on many line" end |