001package com.example.metaschema;
002
003import gov.nist.secauto.metaschema.core.datatype.adapter.StringAdapter;
004import gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine;
005import gov.nist.secauto.metaschema.core.datatype.markup.MarkupLineAdapter;
006import gov.nist.secauto.metaschema.core.model.IBoundObject;
007import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
008import gov.nist.secauto.metaschema.databind.model.annotations.BoundFieldValue;
009import gov.nist.secauto.metaschema.databind.model.annotations.BoundFlag;
010import gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaField;
011import java.lang.Override;
012import java.lang.String;
013import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
014import org.apache.commons.lang3.builder.ToStringStyle;
015
016@MetaschemaField(
017    formalName = "Allowed Value Enumeration",
018    name = "constraint-value-enum",
019    moduleClass = MetaschemaModelModule.class
020)
021public class ConstraintValueEnum implements IBoundObject {
022  private final IMetaschemaData __metaschemaData;
023
024  @BoundFlag(
025      formalName = "Allowed Value Enumeration Value",
026      name = "value",
027      required = true,
028      typeAdapter = StringAdapter.class
029  )
030  private String _value;
031
032  @BoundFlag(
033      formalName = "Allowed Value Deprecation Version",
034      name = "deprecated",
035      typeAdapter = StringAdapter.class
036  )
037  private String _deprecated;
038
039  @BoundFieldValue(
040      valueKeyName = "remark",
041      typeAdapter = MarkupLineAdapter.class
042  )
043  private MarkupLine _remark;
044
045  public ConstraintValueEnum() {
046    this(null);
047  }
048
049  public ConstraintValueEnum(IMetaschemaData data) {
050    this.__metaschemaData = data;
051  }
052
053  @Override
054  public IMetaschemaData getMetaschemaData() {
055    return __metaschemaData;
056  }
057
058  public String getValue() {
059    return _value;
060  }
061
062  public void setValue(String value) {
063    _value = value;
064  }
065
066  public String getDeprecated() {
067    return _deprecated;
068  }
069
070  public void setDeprecated(String value) {
071    _deprecated = value;
072  }
073
074  public MarkupLine getRemark() {
075    return _remark;
076  }
077
078  public void setRemark(MarkupLine value) {
079    _remark = value;
080  }
081
082  @Override
083  public String toString() {
084    return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString();
085  }
086}