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.StringAdapter;
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   * Selecting a set of controls by matching their IDs with a wildcard pattern.
13   */
14  @MetaschemaAssembly(
15      formalName = "Match Controls by Pattern",
16      description = "Selecting a set of controls by matching their IDs with a wildcard pattern.",
17      name = "matching",
18      metaschema = OscalProfileMetaschema.class
19  )
20  public class Matching {
21    @BoundFlag(
22        formalName = "Pattern",
23        description = "A [glob expression](https://en.wikipedia.org/wiki/Glob_(programming)) matching the IDs of one or more controls to be selected.",
24        useName = "pattern",
25        typeAdapter = StringAdapter.class
26    )
27    private String _pattern;
28  
29    public Matching() {
30    }
31  
32    public String getPattern() {
33      return _pattern;
34    }
35  
36    public void setPattern(String value) {
37      _pattern = value;
38    }
39  
40    @Override
41    public String toString() {
42      return new ReflectionToStringBuilder(this, MultilineRecursiveToStringStyle.MULTI_LINE_STYLE).toString();
43    }
44  }