Class: DatatypeMappingLong
- Inherits:
-
DatatypeMappingOrdinal
- Object
- DatatypeMapping
- DatatypeMappingText
- DatatypeMappingOrdinal
- DatatypeMappingLong
- Includes:
- Singleton
- Defined in:
- lib/ontomde-uml2/UMLdatatypeMapping.rb,
lib/ontomde-uml2/kb/datatypeMapping.rb
Constant Summary collapse
- MATCHING_UML_NAME =
["long"]
Instance Attribute Summary
Attributes inherited from DatatypeMapping
Instance Method Summary collapse
-
#appliesTo?(datatype) ⇒ Boolean
MATCHING_JAVA_NAME=[].
- #getHelp ⇒ Object
- #prot_getProtegeType ⇒ Object
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=[]
199 200 201 202 203 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 199 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 |
#getHelp ⇒ Object
205 206 207 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 205 def getHelp return "any valid long" end |
#prot_getProtegeType ⇒ Object
29 30 31 |
# File 'lib/ontomde-uml2/kb/datatypeMapping.rb', line 29 def prot_getProtegeType return Muml_PrimitiveType::PROTEGE_INTEGER_DATATYPE end |