ConstraintLetExpression.java
/*
* SPDX-FileCopyrightText: none
* SPDX-License-Identifier: CC0-1.0
*/
package gov.nist.secauto.metaschema.databind.model.metaschema.binding;
import gov.nist.secauto.metaschema.core.datatype.adapter.StringAdapter;
import gov.nist.secauto.metaschema.core.datatype.adapter.TokenAdapter;
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 org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@SuppressWarnings({
"PMD.DataClass",
"PMD.FieldNamingConventions"
})
@MetaschemaAssembly(
formalName = "Constraint Let Expression",
name = "constraint-let-expression",
moduleClass = MetaschemaModelModule.class)
public class ConstraintLetExpression implements IBoundObject {
private final IMetaschemaData __metaschemaData;
@BoundFlag(
formalName = "Let Variable Name",
name = "var",
required = true,
typeAdapter = TokenAdapter.class)
private String _var;
@BoundFlag(
formalName = "Let Value Metapath Expression",
name = "expression",
required = true,
typeAdapter = StringAdapter.class)
private String _expression;
@BoundField(
formalName = "Remarks",
description = "Any explanatory or helpful information to be provided about the remarks parent.",
useName = "remarks")
private Remarks _remarks;
public ConstraintLetExpression() {
this(null);
}
public ConstraintLetExpression(IMetaschemaData data) {
this.__metaschemaData = data;
}
@Override
public IMetaschemaData getMetaschemaData() {
return __metaschemaData;
}
public String getVar() {
return _var;
}
public void setVar(String value) {
_var = value;
}
public String getExpression() {
return _expression;
}
public void setExpression(String value) {
_expression = 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();
}
}