Class: DatatypeMappingLongObject
- Inherits:
-
DatatypeMappingOrdinal
show all
- Defined in:
- lib/ontomde-java/kbjava/rdfToJava.rb,
lib/ontomde-java/struts/mappingForBean.rb,
lib/ontomde-java/java/xsdDatatypeMapping.rb,
lib/ontomde-java/java/javaDatatypeMapping.rb
Instance Method Summary
collapse
#flex_prefix, #flex_writeMXML_Form_item_property, #flex_writeMXML_MXvalidator, #flex_writeMXML_validate, #flex_writeMXML_vo_mapping, #flex_writeVO_initFromXML_mapping, #flex_writeVO_initItemFromXML_mapping, #flex_writeVO_vars_datatype, #struts_edit_writeFieldGeneric_DisplayTable_displayTag_column
#flex_prefix, #flex_writeMXML_Form_item_property, #flex_writeMXML_Form_item_property_column, #flex_writeMXML_MXvalidator, #flex_writeMXML_vo_mapping, #flex_writeVO_getParameter, #flex_writeVO_initFromXML_mapping, #flex_writeVO_initItemFromXML_mapping, #flex_writeVO_vars_datatype, #getFormCopyTo, #getFormInitFrom, #getJSP, #struts_edit_writeFieldGeneric_DisplayTable_displayTag_column
#addActionFieldMethod!, #crank_validation_annotation, #flex_writeMXML_Form_item_property, #flex_writeMXML_Form_item_property_column, #flex_writeMXML_MXvalidator, #flex_writeMXML_validate, #flex_writeMXML_vo_mapping, #flex_writeVO_getParameter, #flex_writeVO_initFromXML_mapping, #flex_writeVO_initItemFromXML_mapping, #flex_writeVO_vars_datatype, #getFormCopyTo, #getFormInitFrom, #getFormType, #getJSP, #java_Name, #java_helper_addMethods!, #java_helper_customCode, #java_qualifiedName, #jpa_addTypeModificator, #prot_init, #rdf_uri, #struts_edit_writeFieldGeneric_DisplayTable_displayTag_column, #struts_generateHelper
Instance Method Details
#java_getJavaParse(jsrc) ⇒ Object
61
62
63
|
# File 'lib/ontomde-java/struts/mappingForBean.rb', line 61
def java_getJavaParse(jsrc)
return "((Long)Long.parseLong(#{jsrc}))"
end
|
#java_getJavaToString(jsrc) ⇒ Object
57
58
59
60
|
# File 'lib/ontomde-java/struts/mappingForBean.rb', line 57
def java_getJavaToString(jsrc)
return "((Long)#{jsrc}).toString()"
end
|
#java_getType ⇒ Object
62
63
64
|
# File 'lib/ontomde-java/java/javaDatatypeMapping.rb', line 62
def java_getType
return "Long"
end
|
#java_getUndefinedValue ⇒ Object
65
66
67
|
# File 'lib/ontomde-java/java/javaDatatypeMapping.rb', line 65
def java_getUndefinedValue
return %{null}
end
|
#prot_convertToJava(umlprop, valitem) ⇒ Object
Protege string to Java code conversions
373
374
375
376
|
# File 'lib/ontomde-java/kbjava/rdfToJava.rb', line 373
def prot_convertToJava(umlprop,valitem)
return %{new Long("#{valitem.gsub(/^0*([0-9])/,'\1')}")}
end
|
#xsd_getType ⇒ Object
36
37
38
|
# File 'lib/ontomde-java/java/xsdDatatypeMapping.rb', line 36
def xsd_getType
return "xsd:long"
end
|