Class: JavaMappingBoolean

Inherits:
JavaMapping show all
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

Methods inherited from JavaMapping

#flex_writeMXML_MXvalidator

Instance Method Details

#flex_prefixObject



532
533
534
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 532

def flex_prefix
	return "chk"
end

#flex_writeMXML_Form_item_property(prop) ⇒ Object



535
536
537
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 535

def flex_writeMXML_Form_item_property(prop)
	prop.write(%{<mx:CheckBox id="#{flex_prefix}#{prop.java_NameBean}" label="" selected="{model.#{prop.java_Name}}" />\n})
end

#flex_writeMXML_Form_item_property_column(pcol) ⇒ Object



543
544
545
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 543

def flex_writeMXML_Form_item_property_column(pcol)
	pcol.write(%{<mx:DataGridColumn headerText="Column " dataField="#{pcol.java_Name}"/>\n})
end

#flex_writeMXML_validate(prop) ⇒ Object



176
177
178
# File 'lib/ontomde-uml2-flex/Editor.mxml.as.rb', line 176

def flex_writeMXML_validate(prop)
	super
end

#flex_writeMXML_vo_mapping(prop) ⇒ Object

ascenceur=“JavaMappingBoolean.chkascenceurchkascenceur.selected”



540
541
542
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 540

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

#flex_writeVO_getParameter(prop) ⇒ Object



161
162
163
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 161

def flex_writeVO_getParameter(prop)
	prop.write("param.#{prop.java_Name} = #{prop.java_Name};\n")
end

#flex_writeVO_initFromXML_mapping(prop) ⇒ Object

EXAMPLES: isX = DeserializeXMLUtil.getFormBooleanAttributValue(source, ‘isX’);



167
168
169
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 167

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

#flex_writeVO_initItemFromXML_mapping(prop) ⇒ Object



171
172
173
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 171

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

#flex_writeVO_vars_datatype(prop) ⇒ Object



158
159
160
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 158

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