Artifact.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;
/**
* Artifacts analyzed by the tool to yield results.
*/
@MetaschemaAssembly(
formalName = "Artifacts",
description = "Artifacts analyzed by the tool to yield results.",
name = "artifact",
moduleClass = SarifModule.class
)
public class Artifact implements IBoundObject {
private final IMetaschemaData __metaschemaData;
@BoundAssembly(
formalName = "Artifact Location",
description = "The location of the artifact.",
useName = "location"
)
private ArtifactLocation _location;
public Artifact() {
this(null);
}
public Artifact(IMetaschemaData data) {
this.__metaschemaData = data;
}
@Override
public IMetaschemaData getMetaschemaData() {
return __metaschemaData;
}
public ArtifactLocation getLocation() {
return _location;
}
public void setLocation(ArtifactLocation value) {
_location = value;
}
@Override
public String toString() {
return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString();
}
}