001package gov.nist.secauto.oscal.lib.model; 002 003import gov.nist.secauto.metaschema.binding.model.annotations.BoundFlag; 004import gov.nist.secauto.metaschema.binding.model.annotations.MetaschemaAssembly; 005import gov.nist.secauto.metaschema.model.common.datatype.adapter.TokenAdapter; 006import java.lang.Override; 007import java.lang.String; 008import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle; 009import org.apache.commons.lang3.builder.ReflectionToStringBuilder; 010 011/** 012 * Used to select a control objective for inclusion/exclusion based on the control objective's identifier. 013 */ 014@MetaschemaAssembly( 015 formalName = "Select Objective", 016 description = "Used to select a control objective for inclusion/exclusion based on the control objective's identifier.", 017 name = "select-objective-by-id", 018 metaschema = OscalAssessmentCommonMetaschema.class 019) 020public class SelectObjectiveById { 021 @BoundFlag( 022 formalName = "Objective ID", 023 description = "Points to an assessment objective.", 024 useName = "objective-id", 025 required = true, 026 typeAdapter = TokenAdapter.class 027 ) 028 private String _objectiveId; 029 030 public SelectObjectiveById() { 031 } 032 033 public String getObjectiveId() { 034 return _objectiveId; 035 } 036 037 public void setObjectiveId(String value) { 038 _objectiveId = value; 039 } 040 041 @Override 042 public String toString() { 043 return new ReflectionToStringBuilder(this, MultilineRecursiveToStringStyle.MULTI_LINE_STYLE).toString(); 044 } 045}