Class: DatatypeMappingOrdinal

Inherits:
DatatypeMappingText show all
Defined in:
lib/ontomde-java/struts/jsp_edit.rb,
lib/ontomde-java/flex/Editor.mxml.rb,
lib/ontomde-java/flex/ValueObjectAS.rb,
lib/ontomde-java/flex/Editor.mxml.as.rb,
lib/ontomde-java/java/xsdDatatypeMapping.rb,
lib/ontomde-java/java/javaDatatypeMapping.rb

Instance Method Summary collapse

Methods inherited from DatatypeMappingText

#flex_writeMXML_Form_item_property_column, #flex_writeVO_getParameter, #getFormCopyTo, #getFormInitFrom, #getJSP, #java_getJavaParse, #java_getJavaToString, #java_getType, #prot_convertToJava, #xsd_getType

Methods inherited from DatatypeMapping

#addActionFieldMethod!, #crank_validation_annotation, #flex_writeMXML_Form_item_property_column, #flex_writeVO_getParameter, #getFormCopyTo, #getFormInitFrom, #getFormType, #getJSP, #java_Name, #java_getType, #java_helper_addMethods!, #java_helper_customCode, #java_qualifiedName, #jpa_addTypeModificator, #prot_init, #rdf_uri, #struts_generateHelper, #xsd_getType

Instance Method Details

#flex_prefixObject



442
443
444
# File 'lib/ontomde-java/flex/Editor.mxml.rb', line 442

def flex_prefix
	return "num"
end

#flex_writeMXML_Form_item_property(prop) ⇒ Object

EXAMPLE: <mx:NumericStepper id=“nNum” value=“DatatypeMappingOrdinal.modelmodel.numero” stepSize=“1”/>



448
449
450
# File 'lib/ontomde-java/flex/Editor.mxml.rb', line 448

def flex_writeMXML_Form_item_property(prop)
	prop.write(%{<mx:NumericStepper id="#{flex_prefix}#{prop.java_NameBean}" value="{model.#{prop.java_Name}}" stepSize="1" />\n})
end

#flex_writeMXML_MXvalidator(prop) ⇒ Object



153
154
155
# File 'lib/ontomde-java/flex/Editor.mxml.as.rb', line 153

def flex_writeMXML_MXvalidator(prop)
	#nop
end

#flex_writeMXML_validate(prop) ⇒ Object

nop



156
157
158
# File 'lib/ontomde-java/flex/Editor.mxml.as.rb', line 156

def flex_writeMXML_validate(prop)
	super
end

#flex_writeMXML_vo_mapping(prop) ⇒ Object

EXAMPLE: numero=“DatatypeMappingOrdinal.numeronumero.value”



454
455
456
# File 'lib/ontomde-java/flex/Editor.mxml.rb', line 454

def flex_writeMXML_vo_mapping(prop)
	prop.write(%{ #{prop.java_Name}="{#{flex_prefix}#{prop.java_NameBean}.value}"})
end

#flex_writeVO_initFromXML_mapping(prop) ⇒ Object

EXAMPLE: DeserializeXMLUtil.getFormNumberAttributValue(source, ‘numero’);



207
208
209
# File 'lib/ontomde-java/flex/ValueObjectAS.rb', line 207

def flex_writeVO_initFromXML_mapping(prop)
	prop.write("#{prop.java_Name} = DeserializeXMLUtil.getFormNumberAttributValue(source, '#{prop.java_Name}');\n")
end

#flex_writeVO_initItemFromXML_mapping(prop) ⇒ Object

EXAMPLE: numero=DeserializeXMLUtil.getOptionNumberAttributValue(source,‘numero’);



212
213
214
# File 'lib/ontomde-java/flex/ValueObjectAS.rb', line 212

def flex_writeVO_initItemFromXML_mapping(prop)
	prop.write("#{prop.java_Name}=DeserializeXMLUtil.getOptionNumberAttributValue(source,'#{prop.java_Name}');\n")
end

#flex_writeVO_vars_datatype(prop) ⇒ Object

EXAMPLES: public var datedenaissance:Number;



202
203
204
# File 'lib/ontomde-java/flex/ValueObjectAS.rb', line 202

def flex_writeVO_vars_datatype(prop)
	prop.write("public var #{prop.java_Name}:Number;\n")
end

#java_getUndefinedValueObject



44
45
46
# File 'lib/ontomde-java/java/javaDatatypeMapping.rb', line 44

def java_getUndefinedValue
  return "-1"
end

#struts_edit_writeFieldGeneric_DisplayTable_displayTag_column(prop) ⇒ Object



863
864
865
# File 'lib/ontomde-java/struts/jsp_edit.rb', line 863

def struts_edit_writeFieldGeneric_DisplayTable_displayTag_column(prop)
  prop.write %{<display:column property="#{prop.java_Name}" titleKey="#{prop.umlx_owner_one.java_qualifiedName}.#{prop.java_Name}" />\n}
end