Class: DatatypeMappingInteger

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



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

def getJSP(datatype,field,owner)
  super
end

#java_getJavaParse(jsrc) ⇒ Object



42
43
44
# File 'lib/ontomde-java/struts/mappingForBean.rb', line 42

def java_getJavaParse(jsrc)
  return "Integer.parseInt(#{jsrc})"
end

#java_getJavaToString(jsrc) ⇒ Object



39
40
41
# File 'lib/ontomde-java/struts/mappingForBean.rb', line 39

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

#java_getTypeObject



50
51
52
# File 'lib/ontomde-java/java/javaDatatypeMapping.rb', line 50

def java_getType
  return "int"
end

#prot_convertToJava(umlprop, valitem) ⇒ Object

Protege string to Java code conversions



359
360
361
362
# File 'lib/ontomde-java/kbjava/rdfToJava.rb', line 359

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

#xsd_getTypeObject



24
25
26
# File 'lib/ontomde-java/java/xsdDatatypeMapping.rb', line 24

def xsd_getType
  return "xsd:int"
end