Class: DatatypeMappingGenericEnum

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

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)


335
336
337
338
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 335

def appliesTo?(datatype)
  return true if datatype.kind_of?(Muml_Enumeration)
  return false
end

#getHelpObject



340
341
342
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 340

def getHelp
  return "Any enumerated value"
end