KeyConstraintField.java

package com.example.metaschema;

import gov.nist.secauto.metaschema.core.datatype.adapter.StringAdapter;
import gov.nist.secauto.metaschema.core.model.IBoundObject;
import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
import gov.nist.secauto.metaschema.databind.model.annotations.BoundField;
import gov.nist.secauto.metaschema.databind.model.annotations.BoundFlag;
import gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaAssembly;
import java.lang.Override;
import java.lang.String;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@MetaschemaAssembly(
    formalName = "Key Constraint",
    name = "key-constraint-field",
    moduleClass = MetaschemaModelModule.class
)
public class KeyConstraintField implements IBoundObject {
  private final IMetaschemaData __metaschemaData;

  @BoundFlag(
      formalName = "Key Field Value Target",
      name = "target",
      required = true,
      typeAdapter = StringAdapter.class
  )
  private String _target;

  @BoundFlag(
      formalName = "Key Field Value Pattern",
      name = "pattern",
      typeAdapter = StringAdapter.class
  )
  private String _pattern;

  @BoundField(
      formalName = "Remarks",
      description = "Any explanatory or helpful information to be provided about the remarks parent.",
      useName = "remarks"
  )
  private Remarks _remarks;

  public KeyConstraintField() {
    this(null);
  }

  public KeyConstraintField(IMetaschemaData data) {
    this.__metaschemaData = data;
  }

  @Override
  public IMetaschemaData getMetaschemaData() {
    return __metaschemaData;
  }

  public String getTarget() {
    return _target;
  }

  public void setTarget(String value) {
    _target = value;
  }

  public String getPattern() {
    return _pattern;
  }

  public void setPattern(String value) {
    _pattern = value;
  }

  public Remarks getRemarks() {
    return _remarks;
  }

  public void setRemarks(Remarks value) {
    _remarks = value;
  }

  @Override
  public String toString() {
    return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString();
  }
}