/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
var inventory_Item = require("../inventory/Item");
var inventory_Category = require("../inventory/Category");
/**
* @constructor
* @memberof inventory
*/
var CategoryItem = function() {
this._class_ = CategoryItem;
this.item = undefined;
this.category = undefined;
};
/**
* Set the field value
* @memberof inventory.CategoryItem
* @param {inventory.Item} item
*/
CategoryItem.prototype.setItem = function(item) {
this.item = item;
};
/**
* Get the field value
* @memberof inventory.CategoryItem
* @return {inventory.Item}
*/
CategoryItem.prototype.getItem = function() {
return this.item;
};
/**
* Set the field value
* @memberof inventory.CategoryItem
* @param {inventory.Category} category
*/
CategoryItem.prototype.setCategory = function(category) {
this.category = category;
};
/**
* Get the field value
* @memberof inventory.CategoryItem
* @return {inventory.Category}
*/
CategoryItem.prototype.getCategory = function() {
return this.category;
};
/**
* @memberof inventory.CategoryItem
* @private
*/
CategoryItem.prototype.getMetaInfo = function(fieldName) {
var curclass = this._class_;
do {
var fieldMetaInfo = curclass._meta_.fields[fieldName];
if(fieldMetaInfo) {
return fieldMetaInfo;
}
if(curclass._meta_._superMeta_) {
curclass = curclass._meta_._superMeta_._class_;
} else {
curclass = null;
}
} while(curclass);
return null;
};
CategoryItem.prototype.toString = function() {
return JSON.stringify(this);
};
CategoryItem._meta_ = {fields: {}};
CategoryItem._meta_._class_ = CategoryItem;
CategoryItem._meta_.fields["item"] = {};
CategoryItem._meta_.fields["item"].type = inventory_Item;
CategoryItem._meta_.fields["category"] = {};
CategoryItem._meta_.fields["category"].type = inventory_Category;
//
// Expose the module.
//
if ('undefined' !== typeof module) {
module.exports = CategoryItem;
}