Class: DatatypeMappingPassword

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

Constant Summary collapse

MATCHING_UML_NAME =
["password"]

Instance Attribute Summary

Attributes inherited from DatatypeMapping

#maxStringLength

Instance Method Summary collapse

Methods inherited from DatatypeMappingText

#initialize, #prot_getProtegeType

Methods inherited from DatatypeMapping

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

Constructor Details

This class inherits a constructor from DatatypeMappingText

Instance Method Details

#appliesTo?(datatype) ⇒ Boolean

Returns:

  • (Boolean)


400
401
402
403
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 400

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

#getHelpObject



405
406
407
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 405

def getHelp
  return "any String of any length meant to be used as passowrd"
end