001package org.schemastore.json.sarif.x210;
002
003import gov.nist.secauto.metaschema.core.model.IBoundObject;
004import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
005import gov.nist.secauto.metaschema.databind.model.annotations.BoundAssembly;
006import gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaAssembly;
007import java.lang.Override;
008import java.lang.String;
009import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
010import org.apache.commons.lang3.builder.ToStringStyle;
011
012/**
013 * Artifacts analyzed by the tool to yield results.
014 */
015@MetaschemaAssembly(
016    formalName = "Artifacts",
017    description = "Artifacts analyzed by the tool to yield results.",
018    name = "artifact",
019    moduleClass = SarifModule.class
020)
021public class Artifact implements IBoundObject {
022  private final IMetaschemaData __metaschemaData;
023
024  @BoundAssembly(
025      formalName = "Artifact Location",
026      description = "The location of the artifact.",
027      useName = "location"
028  )
029  private ArtifactLocation _location;
030
031  public Artifact() {
032    this(null);
033  }
034
035  public Artifact(IMetaschemaData data) {
036    this.__metaschemaData = data;
037  }
038
039  @Override
040  public IMetaschemaData getMetaschemaData() {
041    return __metaschemaData;
042  }
043
044  public ArtifactLocation getLocation() {
045    return _location;
046  }
047
048  public void setLocation(ArtifactLocation value) {
049    _location = value;
050  }
051
052  @Override
053  public String toString() {
054    return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString();
055  }
056}