KeyConstraintField.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.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 = "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();
}
}