SelectObjectiveById.java
package gov.nist.secauto.oscal.lib.model;
import gov.nist.secauto.metaschema.core.datatype.adapter.TokenAdapter;
import gov.nist.secauto.metaschema.core.model.IBoundObject;
import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
import gov.nist.secauto.metaschema.databind.model.annotations.BoundFlag;
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;
/**
* Used to select a control objective for inclusion/exclusion based on the control objective's identifier.
*/
@MetaschemaAssembly(
formalName = "Select Objective",
description = "Used to select a control objective for inclusion/exclusion based on the control objective's identifier.",
name = "select-objective-by-id",
moduleClass = OscalAssessmentCommonModule.class
)
public class SelectObjectiveById implements IBoundObject {
private final IMetaschemaData __metaschemaData;
/**
* "Points to an assessment objective."
*/
@BoundFlag(
formalName = "Objective ID",
description = "Points to an assessment objective.",
name = "objective-id",
required = true,
typeAdapter = TokenAdapter.class
)
private String _objectiveId;
public SelectObjectiveById() {
this(null);
}
public SelectObjectiveById(IMetaschemaData data) {
this.__metaschemaData = data;
}
@Override
public IMetaschemaData getMetaschemaData() {
return __metaschemaData;
}
public String getObjectiveId() {
return _objectiveId;
}
public void setObjectiveId(String value) {
_objectiveId = value;
}
@Override
public String toString() {
return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString();
}
}