Tool.java

package org.schemastore.json.sarif.x210;

import gov.nist.secauto.metaschema.core.model.IBoundObject;
import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
import gov.nist.secauto.metaschema.databind.model.annotations.BoundAssembly;
import gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaAssembly;
import java.lang.Override;
import java.lang.String;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * The analysis tool used.
 */
@MetaschemaAssembly(
    formalName = "Tool",
    description = "The analysis tool used.",
    name = "tool",
    moduleClass = SarifModule.class
)
public class Tool implements IBoundObject {
  private final IMetaschemaData __metaschemaData;

  @BoundAssembly(
      useName = "driver"
  )
  private ToolComponent _driver;

  public Tool() {
    this(null);
  }

  public Tool(IMetaschemaData data) {
    this.__metaschemaData = data;
  }

  @Override
  public IMetaschemaData getMetaschemaData() {
    return __metaschemaData;
  }

  public ToolComponent getDriver() {
    return _driver;
  }

  public void setDriver(ToolComponent value) {
    _driver = value;
  }

  @Override
  public String toString() {
    return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString();
  }
}