001// Generated from: ../../../../../../../../oscal/src/metaschema/oscal_control-common_metaschema.xml 002// Do not edit - changes will be lost when regenerated. 003package dev.metaschema.oscal.lib.model; 004 005import dev.metaschema.core.model.IBoundObject; 006import dev.metaschema.core.model.IMetaschemaData; 007import dev.metaschema.core.util.ObjectUtils; 008import dev.metaschema.databind.model.annotations.MetaschemaAssembly; 009import org.apache.commons.lang3.builder.ReflectionToStringBuilder; 010import org.apache.commons.lang3.builder.ToStringStyle; 011 012/** 013 * Include all controls from the imported catalog or profile resources. 014 */ 015@MetaschemaAssembly( 016 formalName = "Include All", 017 description = "Include all controls from the imported catalog or profile resources.", 018 name = "include-all", 019 moduleClass = OscalControlCommonModule.class, 020 remarks = "This element provides an alternative to calling controls individually from a catalog." 021) 022public class IncludeAll implements IBoundObject { 023 private final IMetaschemaData __metaschemaData; 024 025 /** 026 * Constructs a new {@code dev.metaschema.oscal.lib.model.IncludeAll} instance with no metadata. 027 */ 028 public IncludeAll() { 029 this(null); 030 } 031 032 /** 033 * Constructs a new {@code dev.metaschema.oscal.lib.model.IncludeAll} instance with the specified metadata. 034 * 035 * @param data 036 * the metaschema data, or {@code null} if none 037 */ 038 public IncludeAll(IMetaschemaData data) { 039 this.__metaschemaData = data; 040 } 041 042 @Override 043 public IMetaschemaData getMetaschemaData() { 044 return __metaschemaData; 045 } 046 047 @Override 048 public String toString() { 049 return ObjectUtils.notNull(new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString()); 050 } 051}