Class: DatatypeMappingLargeText

Inherits:
DatatypeMappingText show all
Includes:
Singleton
Defined in:
lib/ontomde-uml2/UMLdatatypeMapping.rb,
lib/ontomde-uml2/kb/datatypeMapping.rb

Direct Known Subclasses

DatatypeMappingGRAPHVIZ

Constant Summary collapse

HELPMSG =
" "
MATCHING_UML_NAME =
['largetext','longtext']

Instance Attribute Summary

Attributes inherited from DatatypeMapping

#maxStringLength

Instance Method Summary collapse

Methods inherited from DatatypeMappingText

#prot_getProtegeType

Methods inherited from DatatypeMapping

#getMapping, #getMappings, #getValidationRegexp, #prot_getProtegeType, #register

Constructor Details

#initializeDatatypeMappingLargeText

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

Returns:

  • (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

#getHelpObject



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