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"]

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, #initialize, #prot_getProtegeType

Constructor Details

This class inherits a constructor from DatatypeMapping

Instance Method Details

#appliesTo?(datatype) ⇒ Boolean

Returns:

  • (Boolean)


149
150
151
152
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 149

def appliesTo?(datatype)
  return true if MATCHING_UML_NAME.include?(datatype.uml_name_one)
  return false
end

#getHelpObject



154
155
156
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 154

def getHelp
  return "any string of any length and any content displayable on many line"
end