Source: inventory/TagPrinter.js

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

var printer_Printer = require("../printer/Printer");
var inventory_Tag = require("../inventory/Tag");

/**
* @constructor
* @memberof inventory
*/
var TagPrinter = function() {
  this._class_ = TagPrinter;
  this.tag = undefined;
  this.printer = undefined;
};


/**
* Set the field value
* @memberof inventory.TagPrinter
* @param {inventory.Tag} tag 
*/
TagPrinter.prototype.setTag = function(tag) {
  this.tag = tag;
};

/**
* Get the field value
* @memberof inventory.TagPrinter
* @return {inventory.Tag} 
*/
TagPrinter.prototype.getTag = function() {
  return this.tag;
};

/**
* Set the field value
* @memberof inventory.TagPrinter
* @param {printer.Printer} printer 
*/
TagPrinter.prototype.setPrinter = function(printer) {
  this.printer = printer;
};

/**
* Get the field value
* @memberof inventory.TagPrinter
* @return {printer.Printer} 
*/
TagPrinter.prototype.getPrinter = function() {
  return this.printer;
};

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

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

TagPrinter._meta_ =  {fields:  {}};
TagPrinter._meta_._class_ =  TagPrinter;
TagPrinter._meta_.fields["tag"] = {};
TagPrinter._meta_.fields["tag"].type = inventory_Tag;
TagPrinter._meta_.fields["printer"] = {};
TagPrinter._meta_.fields["printer"].type = printer_Printer;

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