Class: DatatypeMappingInteger

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

Constant Summary collapse

MATCHING_UML_NAME =
["integer","Integer","int"]

Instance Attribute Summary

Attributes inherited from DatatypeMapping

#maxStringLength

Instance Method Summary collapse

Methods inherited from DatatypeMapping

#getMapping, #getMappings, #getValidationRegexp, #initialize

Constructor Details

This class inherits a constructor from DatatypeMapping

Instance Method Details

#appliesTo?(datatype) ⇒ Boolean

MATCHING_JAVA_NAME=[]

Returns:

  • (Boolean)


184
185
186
187
188
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 184

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

#getHelpObject



190
191
192
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 190

def getHelp
  return "any valid integer"
end

#prot_getProtegeTypeObject



23
24
25
# File 'lib/ontomde-uml2/kb/datatypeMapping.rb', line 23

def prot_getProtegeType
  return Muml_PrimitiveType::PROTEGE_INTEGER_DATATYPE
end