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