| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE Definitions SYSTEM "widlprocxml.dtd"> |
| <Definitions> |
| <webidl>enum MealType { "rice", "noodles", "other" }; |
| |
| interface Meal { |
| attribute <ref>MealType</ref> type; |
| attribute float size; |
| |
| void initialize(<ref>MealType</ref> type, float size); |
| };</webidl> |
| <Enum name="MealType" id="::MealType"> |
| <webidl>enum MealType { "rice", "noodles", "other" };</webidl> |
| <EnumValue stringvalue="rice"> |
| <webidl> "rice</webidl> |
| </EnumValue> |
| <EnumValue stringvalue="noodles"> |
| <webidl> "noodles</webidl> |
| </EnumValue> |
| <EnumValue stringvalue="other"> |
| <webidl> "other</webidl> |
| </EnumValue> |
| </Enum> |
| <Interface name="Meal" id="::Meal"> |
| <webidl>interface Meal { |
| attribute <ref>MealType</ref> type; |
| attribute float size; |
| |
| void initialize(<ref>MealType</ref> type, float size); |
| };</webidl> |
| <Attribute name="type" id="::Meal::type"> |
| <webidl> attribute <ref>MealType</ref> type;</webidl> |
| <Type name="MealType"/> |
| </Attribute> |
| <Attribute name="size" id="::Meal::size"> |
| <webidl> attribute float size;</webidl> |
| <Type type="float"/> |
| </Attribute> |
| <Operation name="initialize" id="::Meal::initialize"> |
| <webidl> void initialize(<ref>MealType</ref> type, float size);</webidl> |
| <Type type="void"/> |
| <ArgumentList> |
| <Argument name="type"> |
| <Type name="MealType"/> |
| </Argument> |
| <Argument name="size"> |
| <Type type="float"/> |
| </Argument> |
| </ArgumentList> |
| </Operation> |
| </Interface> |
| </Definitions> |