001package com.example.metaschema; 002 003import gov.nist.secauto.metaschema.core.datatype.adapter.StringAdapter; 004import gov.nist.secauto.metaschema.core.model.IBoundObject; 005import gov.nist.secauto.metaschema.core.model.IMetaschemaData; 006import gov.nist.secauto.metaschema.databind.model.annotations.BoundField; 007import gov.nist.secauto.metaschema.databind.model.annotations.BoundFlag; 008import gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaAssembly; 009import java.lang.Override; 010import java.lang.String; 011import org.apache.commons.lang3.builder.ReflectionToStringBuilder; 012import org.apache.commons.lang3.builder.ToStringStyle; 013 014@MetaschemaAssembly( 015 formalName = "Key Constraint", 016 name = "key-constraint-field", 017 moduleClass = MetaschemaModelModule.class 018) 019public class KeyConstraintField implements IBoundObject { 020 private final IMetaschemaData __metaschemaData; 021 022 @BoundFlag( 023 formalName = "Key Field Value Target", 024 name = "target", 025 required = true, 026 typeAdapter = StringAdapter.class 027 ) 028 private String _target; 029 030 @BoundFlag( 031 formalName = "Key Field Value Pattern", 032 name = "pattern", 033 typeAdapter = StringAdapter.class 034 ) 035 private String _pattern; 036 037 @BoundField( 038 formalName = "Remarks", 039 description = "Any explanatory or helpful information to be provided about the remarks parent.", 040 useName = "remarks" 041 ) 042 private Remarks _remarks; 043 044 public KeyConstraintField() { 045 this(null); 046 } 047 048 public KeyConstraintField(IMetaschemaData data) { 049 this.__metaschemaData = data; 050 } 051 052 @Override 053 public IMetaschemaData getMetaschemaData() { 054 return __metaschemaData; 055 } 056 057 public String getTarget() { 058 return _target; 059 } 060 061 public void setTarget(String value) { 062 _target = value; 063 } 064 065 public String getPattern() { 066 return _pattern; 067 } 068 069 public void setPattern(String value) { 070 _pattern = value; 071 } 072 073 public Remarks getRemarks() { 074 return _remarks; 075 } 076 077 public void setRemarks(Remarks value) { 078 _remarks = value; 079 } 080 081 @Override 082 public String toString() { 083 return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString(); 084 } 085}