Class: JavaMappingOrdinal
- Inherits:
-
JavaMappingText
- Object
- JavaMapping
- JavaMappingText
- JavaMappingOrdinal
- Defined in:
- lib/ontomde-uml2-flex/Editor.mxml.rb,
lib/ontomde-uml2-flex/ValueObjectAS.rb,
lib/ontomde-uml2-flex/Editor.mxml.as.rb
Instance Method Summary collapse
- #flex_prefix ⇒ Object
-
#flex_writeMXML_Form_item_property(prop) ⇒ Object
EXAMPLE: <mx:NumericStepper id=“nNum” value=“modelmodel.numero” stepSize=“1”/>.
- #flex_writeMXML_MXvalidator(prop) ⇒ Object
-
#flex_writeMXML_validate(prop) ⇒ Object
nop.
-
#flex_writeMXML_vo_mapping(prop) ⇒ Object
EXAMPLE: numero=“numeronumero.value”.
-
#flex_writeVO_initFromXML_mapping(prop) ⇒ Object
EXAMPLE: DeserializeXMLUtil.getFormNumberAttributValue(source, ‘numero’);.
-
#flex_writeVO_initItemFromXML_mapping(prop) ⇒ Object
EXAMPLE: numero=DeserializeXMLUtil.getOptionNumberAttributValue(source,‘numero’);.
-
#flex_writeVO_vars_datatype(prop) ⇒ Object
EXAMPLES: public var datedenaissance:Number;.
Methods inherited from JavaMappingText
#flex_writeMXML_Form_item_property_column, #flex_writeVO_getParameter
Methods inherited from JavaMapping
#flex_writeMXML_Form_item_property_column, #flex_writeVO_getParameter
Instance Method Details
#flex_prefix ⇒ Object
442 443 444 |
# File 'lib/ontomde-uml2-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=“JavaMappingOrdinal.modelmodel.numero” stepSize=“1”/>
448 449 450 |
# File 'lib/ontomde-uml2-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-uml2-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-uml2-flex/Editor.mxml.as.rb', line 156 def flex_writeMXML_validate(prop) super end |
#flex_writeMXML_vo_mapping(prop) ⇒ Object
EXAMPLE: numero=“JavaMappingOrdinal.numeronumero.value”
454 455 456 |
# File 'lib/ontomde-uml2-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-uml2-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-uml2-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-uml2-flex/ValueObjectAS.rb', line 202 def flex_writeVO_vars_datatype(prop) prop.write("public var #{prop.java_Name}:Number;\n") end |