View Javadoc
1   package gov.nist.secauto.oscal.lib.model;
2   
3   import gov.nist.secauto.metaschema.binding.model.annotations.BoundFlag;
4   import gov.nist.secauto.metaschema.binding.model.annotations.MetaschemaAssembly;
5   import gov.nist.secauto.metaschema.model.common.datatype.adapter.TokenAdapter;
6   import java.lang.Override;
7   import java.lang.String;
8   import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle;
9   import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
10  
11  /**
12   * Used to select a control objective for inclusion/exclusion based on the control objective's identifier.
13   */
14  @MetaschemaAssembly(
15      formalName = "Select Objective",
16      description = "Used to select a control objective for inclusion/exclusion based on the control objective's identifier.",
17      name = "select-objective-by-id",
18      metaschema = OscalAssessmentCommonMetaschema.class
19  )
20  public class SelectObjectiveById {
21    @BoundFlag(
22        formalName = "Objective ID",
23        description = "Points to an assessment objective.",
24        useName = "objective-id",
25        required = true,
26        typeAdapter = TokenAdapter.class
27    )
28    private String _objectiveId;
29  
30    public SelectObjectiveById() {
31    }
32  
33    public String getObjectiveId() {
34      return _objectiveId;
35    }
36  
37    public void setObjectiveId(String value) {
38      _objectiveId = value;
39    }
40  
41    @Override
42    public String toString() {
43      return new ReflectionToStringBuilder(this, MultilineRecursiveToStringStyle.MULTI_LINE_STYLE).toString();
44    }
45  }