Class: DatatypeMappingLongObject

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 =
["Long","longOrNull"]

Instance Attribute Summary

Attributes inherited from DatatypeMapping

#maxStringLength

Instance Method Summary collapse

Methods inherited from DatatypeMappingText

#initialize

Methods inherited from DatatypeMapping

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

Constructor Details

This class inherits a constructor from DatatypeMappingText

Instance Method Details

#appliesTo?(datatype) ⇒ Boolean

MATCHING_JAVA_NAME=[]

Returns:

  • (Boolean)


223
224
225
226
227
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 223

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



229
230
231
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 229

def getHelp
  return "any valid long value or null"
end

#prot_getProtegeTypeObject



35
36
37
# File 'lib/ontomde-uml2/kb/datatypeMapping.rb', line 35

def prot_getProtegeType
  return Muml_PrimitiveType::PROTEGE_INTEGER_DATATYPE
end