Class: DatatypeMappingBLOB

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

Direct Known Subclasses

DatatypeMappingIMG

Constant Summary collapse

MATCHING_UML_NAME =
["blob"]

Instance Attribute Summary

Attributes inherited from DatatypeMapping

#maxStringLength

Instance Method Summary collapse

Methods inherited from DatatypeMapping

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

Constructor Details

This class inherits a constructor from DatatypeMapping

Instance Method Details

#appliesTo?(datatype) ⇒ Boolean

Returns:

  • (Boolean)


365
366
367
368
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 365

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

#getHelpObject



369
370
371
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 369

def getHelp
  return "Any BLOB"
end