Class: DatatypeMappingCalendar

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

Overview

struts jsp template for a Calendar datatype. A Calendar datatype is a calendar date, not including hours,minutes and seconds A Calendar is not to be mistaken for a TimeStamp NOTE:

"Date" datatype name is not used because it is ambiguous.
Calendar and TimeStamp are used instead

Constant Summary collapse

MATCHING_UML_NAME =
["calendar"]

Instance Attribute Summary

Attributes inherited from DatatypeMapping

#maxStringLength

Instance Method Summary collapse

Methods inherited from DatatypeMapping

#getMapping, #getMappings, #initialize, #register

Constructor Details

This class inherits a constructor from DatatypeMapping

Instance Method Details

#appliesTo?(datatype) ⇒ Boolean

MATCHING_JAVA_NAME=[]

Returns:

  • (Boolean)


298
299
300
301
302
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 298

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



308
309
310
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 308

def getHelp
  return "a day "
end

#getValidationRegexpObject



304
305
306
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 304

def getValidationRegexp
  return nil
end

#prot_getProtegeTypeObject



55
56
57
# File 'lib/ontomde-uml2/kb/datatypeMapping.rb', line 55

def prot_getProtegeType
  return Muml_PrimitiveType::PROTEGE_STRING_DATATYPE
end