Changeset 238 for ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/model/CMDAttribute.as
- Timestamp:
- 03/17/10 13:03:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/model/CMDAttribute.as
r224 r238 13 13 public var valueSchemeEnumeration:XMLListCollection; // enumeration 14 14 15 //TODO Patrick see element?? check usage in xmlBrowser16 17 18 15 public function CMDAttribute() { 19 16 } 20 17 21 18 public function toXml():XML { 22 var result:XML = <Attribute></Attribute>;19 var result:XML = <Attribute></Attribute>; 23 20 result.appendChild(<Name>{name}</Name>); 24 21 if (valueSchemePattern) { 25 result.appendChild(< pattern>{valueSchemePattern}</pattern>);22 result.appendChild(<ValueScheme><pattern>{valueSchemePattern}</pattern></ValueScheme>); 26 23 } else if (valueSchemeEnumeration) { 27 result.appendChild(<enumeration>{valueSchemeEnumeration}</enumeration>); 24 var enumerationScheme:XML = <enumeration></enumeration>; 25 for each(var item:XML in valueSchemeEnumeration) { 26 enumerationScheme.appendChild(item); 27 } 28 result.appendChild(<ValueScheme>{enumerationScheme}</ValueScheme>); 28 29 } else { 29 30 result.appendChild(<Type>{type}</Type>);
Note: See TracChangeset
for help on using the changeset viewer.