Class: DatatypeMappingIMG

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

Constant Summary collapse

MATCHING_UML_NAME =
["Img","Image"]

Instance Attribute Summary

Attributes inherited from DatatypeMapping

#maxStringLength

Instance Method Summary collapse

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)


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

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

#getHelpObject



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

def getHelp
  return "Any image"
end