Source: order/OrderTypeCategory.js

/**
 * Autogenerated by Avro
 * 
 * DO NOT EDIT DIRECTLY
 */

var order_OrderType = require("../order/OrderType");
var inventory_Category = require("../inventory/Category");

/**
* @constructor
* @memberof order
*/
var OrderTypeCategory = function() {
  this._class_ = OrderTypeCategory;
  this.orderType = undefined;
  this.category = undefined;
};


/**
* Set the field value
* @memberof order.OrderTypeCategory
* @param {order.OrderType} orderType 
*/
OrderTypeCategory.prototype.setOrderType = function(orderType) {
  this.orderType = orderType;
};

/**
* Get the field value
* @memberof order.OrderTypeCategory
* @return {order.OrderType} 
*/
OrderTypeCategory.prototype.getOrderType = function() {
  return this.orderType;
};

/**
* Set the field value
* @memberof order.OrderTypeCategory
* @param {inventory.Category} category 
*/
OrderTypeCategory.prototype.setCategory = function(category) {
  this.category = category;
};

/**
* Get the field value
* @memberof order.OrderTypeCategory
* @return {inventory.Category} 
*/
OrderTypeCategory.prototype.getCategory = function() {
  return this.category;
};

/**
* @memberof order.OrderTypeCategory
* @private
*/
OrderTypeCategory.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;
};

OrderTypeCategory.prototype.toString = function() {
  return JSON.stringify(this);
};

OrderTypeCategory._meta_ =  {fields:  {}};
OrderTypeCategory._meta_._class_ =  OrderTypeCategory;
OrderTypeCategory._meta_.fields["orderType"] = {};
OrderTypeCategory._meta_.fields["orderType"].type = order_OrderType;
OrderTypeCategory._meta_.fields["category"] = {};
OrderTypeCategory._meta_.fields["category"].type = inventory_Category;

//
// Expose the module.
//
if ('undefined' !== typeof module) {
module.exports = OrderTypeCategory;
}