Class: DatatypeMappingFile

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 =
["file"]

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)


237
238
239
240
241
242
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 237

def appliesTo?(datatype)
  return false unless datatype.kind_of?(Muml_DataType)
  return true if MATCHING_UML_NAME.include?(datatype.uml_name_one.downcase)
  #return datatype.struts_isBlob?
  #return ["image"].include?(datatype.java_qualifiedName)
end

#getHelpObject



244
245
246
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 244

def getHelp
  super 
end