Class: DatatypeMappingURL
- Inherits:
-
DatatypeMappingText
- Object
- DatatypeMapping
- DatatypeMappingText
- DatatypeMappingURL
- Includes:
- Singleton
- Defined in:
- lib/ontomde-uml2/UMLdatatypeMapping.rb,
lib/ontomde-uml2/kb/datatypeMapping.rb
Constant Summary collapse
- MATCHING_UML_NAME =
["URL","URI"]
Instance Attribute Summary
Attributes inherited from DatatypeMapping
Instance Method Summary collapse
-
#appliesTo?(datatype) ⇒ Boolean
MATCHING_JAVA_NAME=[].
- #getHelp ⇒ Object
Methods inherited from DatatypeMappingText
Methods inherited from DatatypeMapping
#getMapping, #getMappings, #getValidationRegexp, #initialize, #prot_getProtegeType
Constructor Details
This class inherits a constructor from DatatypeMapping
Instance Method Details
#appliesTo?(datatype) ⇒ Boolean
MATCHING_JAVA_NAME=[]
341 342 343 344 345 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 341 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
347 348 349 |
# File 'lib/ontomde-uml2/UMLdatatypeMapping.rb', line 347 def getHelp return "Any URL" end |