All Downloads are FREE. Search and download functionalities are using the official Maven repository.

flash.modelList.mustache Maven / Gradle / Ivy

There is a newer version: 2.0.14
Show newest version
package {{package}} {

import com.wordnik.swagger.common.ListWrapper;
{{#imports}}import {{import}};
{{/imports}}

{{#models}}
{{#model}}
    public class {{classname}}List implements ListWrapper {
        // This declaration below of _{{name}}_obj_class is to force flash compiler to include this class
        private var _{{classVarName}}_obj_class: {{package}}.{{classname}} = null;
        [XmlElements(name="{{classVarName}}", type="{{package}}.{{classname}}")]
        public var {{classVarName}}: Array = new Array();

        public function getList(): Array{
            return {{classVarName}};
        }

}
{{/model}}
        {{/models}}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy