001package com.example.metaschema;
002
003import gov.nist.secauto.metaschema.core.datatype.adapter.TokenAdapter;
004import gov.nist.secauto.metaschema.core.model.IBoundObject;
005import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
006import gov.nist.secauto.metaschema.databind.model.annotations.BoundFlag;
007import gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaAssembly;
008import java.lang.Override;
009import java.lang.String;
010import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
011import org.apache.commons.lang3.builder.ToStringStyle;
012
013@MetaschemaAssembly(
014    formalName = "Flag Used as the Field Value's JSON Property Name",
015    name = "json-value-key-flag",
016    moduleClass = MetaschemaModelModule.class
017)
018public class JsonValueKeyFlag implements IBoundObject {
019  private final IMetaschemaData __metaschemaData;
020
021  @BoundFlag(
022      formalName = "Flag Reference",
023      name = "flag-ref",
024      required = true,
025      typeAdapter = TokenAdapter.class
026  )
027  private String _flagRef;
028
029  public JsonValueKeyFlag() {
030    this(null);
031  }
032
033  public JsonValueKeyFlag(IMetaschemaData data) {
034    this.__metaschemaData = data;
035  }
036
037  @Override
038  public IMetaschemaData getMetaschemaData() {
039    return __metaschemaData;
040  }
041
042  public String getFlagRef() {
043    return _flagRef;
044  }
045
046  public void setFlagRef(String value) {
047    _flagRef = value;
048  }
049
050  @Override
051  public String toString() {
052    return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString();
053  }
054}