# Source: repository/types/HasTranslationAssociation.js

    (function(window)
    {
        var Gitana = window.Gitana;

        Gitana.HasTranslationAssociation = Gitana.Association.extend(
        /** @lends Gitana.HasTranslationAssociation.prototype */
        {
            /**
             * @constructs
             * @augments Gitana.Association
             *
             * @class Has Translation Association
             *
             * @param {Gitana.Branch} branch
             * @param [Object] object json object (if no callback required for populating)
             */
            constructor: function(branch, object)
            {
                this.base(branch, object);

                this.objectType = function() { return "Gitana.HasTranslationAssociation"; };
            },

            /**
             * @override
             */
            clone: function()
            {
                return new Gitana.HasTranslationAssociation(this.getBranch(), this);
            },

            /**
             * Gets the locale of this association.
             *
             * @returns {String} locale
             */
            getLocale: function()
            {
                return this.get("locale");
            },

            /**
             * Sets the locale of this association.
             *
             * @param locale
             */
            setLocale: function(locale)
            {
                this.set("locale", locale);
            },

            /**
             * Gets the edition of this association.
             *
             * @returns {String} edition
             */
            getEdition: function()
            {
                return this.get("edition");
            },

            /**
             * Sets the edition of this association.
             *
             * @param edition
             */
            setEdition: function(edition)
            {
                this.set("edition", edition);
            }

        });

        Gitana.ObjectFactory.register("a:has_translation", Gitana.HasTranslationAssociation);

    })(window);