Class: DatatypeMappingLong

Inherits:
DatatypeMappingOrdinal show all
Defined in:
lib/ontomde-java/kbjava/rdfToJava.rb,
lib/ontomde-java/struts/mappingForJsp.rb,
lib/ontomde-java/struts/mappingForBean.rb,
lib/ontomde-java/java/xsdDatatypeMapping.rb,
lib/ontomde-java/java/javaDatatypeMapping.rb

Instance Method Summary collapse

Methods inherited from DatatypeMappingOrdinal

#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, #java_getUndefinedValue, #struts_edit_writeFieldGeneric_DisplayTable_displayTag_column

Methods inherited from DatatypeMappingText

#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, #java_getUndefinedValue, #struts_edit_writeFieldGeneric_DisplayTable_displayTag_column

Methods inherited from DatatypeMapping

#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, #java_Name, #java_getUndefinedValue, #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

#getJSP(datatype, field, owner) ⇒ Object



62
63
64
# File 'lib/ontomde-java/struts/mappingForJsp.rb', line 62

def getJSP(datatype,field,owner)
  super
end

#java_getJavaParse(jsrc) ⇒ Object



51
52
53
# File 'lib/ontomde-java/struts/mappingForBean.rb', line 51

def java_getJavaParse(jsrc)
  return "Long.parseLong(#{jsrc})"
end

#java_getJavaToString(jsrc) ⇒ Object



48
49
50
# File 'lib/ontomde-java/struts/mappingForBean.rb', line 48

def java_getJavaToString(jsrc)
  return "Long.toString(#{jsrc})"
end

#java_getTypeObject



56
57
58
# File 'lib/ontomde-java/java/javaDatatypeMapping.rb', line 56

def java_getType
  return "long"
end

#prot_convertToJava(umlprop, valitem) ⇒ Object

Protege string to Java code conversions



366
367
368
369
# File 'lib/ontomde-java/kbjava/rdfToJava.rb', line 366

def prot_convertToJava(umlprop,valitem)
  #Remove leading 0 (octal)
  return valitem.gsub(/^0*([0-9])/,'\1')
end

#xsd_getTypeObject



30
31
32
# File 'lib/ontomde-java/java/xsdDatatypeMapping.rb', line 30

def xsd_getType
  return "xsd:long"
end