Ignore:
Timestamp:
03/17/10 13:03:11 (14 years ago)
Author:
patdui
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/model/CMDAttribute.as

    r224 r238  
    1313                public var valueSchemeEnumeration:XMLListCollection; // enumeration
    1414
    15                 //TODO Patrick see element?? check usage in xmlBrowser
    16 
    17 
    1815                public function CMDAttribute() {
    1916                }
    2017
    2118                public function toXml():XML {
    22                         var result:XML = <Attribute></Attribute>;
     19                        var result:XML = <Attribute></Attribute>;
    2320                        result.appendChild(<Name>{name}</Name>);
    2421                        if (valueSchemePattern) {
    25                                 result.appendChild(<pattern>{valueSchemePattern}</pattern>);
     22                                result.appendChild(<ValueScheme><pattern>{valueSchemePattern}</pattern></ValueScheme>);
    2623                        } 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>);
    2829                        } else {
    2930                                result.appendChild(<Type>{type}</Type>);
Note: See TracChangeset for help on using the changeset viewer.