Class: DatatypeMappingBoolean

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

Constant Summary collapse

MATCHING_UML_NAME =
["boolean"]

Instance Attribute Summary

Attributes inherited from DatatypeMapping

#maxStringLength

Instance Method Summary collapse

Methods inherited from DatatypeMapping

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

Constructor Details

This class inherits a constructor from DatatypeMapping

Instance Method Details

#appliesTo?(datatype) ⇒ Boolean

MATCHING_JAVA_NAME=[]

Returns:

  • (Boolean)


253
254
255
256
257
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 253

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

#getHelpObject



259
260
261
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 259

def getHelp
  return "boolean true or false"
end

#prot_getProtegeTypeObject



43
44
45
# File 'lib/ontomde-uml2/kb/datatypeMapping.rb', line 43

def prot_getProtegeType
  return Muml_PrimitiveType::PROTEGE_BOOLEAN_DATATYPE
end