Class: DatatypeMappingFile

Inherits:
DatatypeMapping 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 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, #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

#getFormCopyTo(field) ⇒ Object



67
68
69
70
71
# File 'lib/ontomde-java/struts/mappingForBean.rb', line 67

def getFormCopyTo(field)
  "/* not implemented #{field} */\n"
  #super # TODO
  # /*TPL:9004*/"
end

#getFormInitFrom(field) ⇒ Object

super # TODO /TPL:9004/“



72
73
74
75
76
# File 'lib/ontomde-java/struts/mappingForBean.rb', line 72

def getFormInitFrom(field)
  "/* not implemented #{field} */\n"
  #super # TODO
  # /*TPL:9004*/"
end

#getJSP(datatype, field, owner) ⇒ Object



68
69
70
71
# File 'lib/ontomde-java/struts/mappingForJsp.rb', line 68

def getJSP(datatype,field,owner)
  n=datatype.java_Name.downcase #TODO
  return %{<html:file property="#{field.java_Name}" size="20%" maxlength="30" styleId="#{n}" #{::Muml_DataType::STRUTS_ERROR_STYLE}/>}
end

#java_getTypeObject



70
71
72
# File 'lib/ontomde-java/java/javaDatatypeMapping.rb', line 70

def java_getType
  return "java.lang.Object"
end

#prot_convertToJava(umlprop, valitem) ⇒ Object

Protege string to Java code conversions



381
382
383
384
# File 'lib/ontomde-java/kbjava/rdfToJava.rb', line 381

def prot_convertToJava(umlprop,valitem)
  # ??
  return valitem
end

#xsd_getTypeObject



41
42
43
# File 'lib/ontomde-java/java/xsdDatatypeMapping.rb', line 41

def xsd_getType
  return "xsd:???"
end