Example.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.UriReferenceAdapter;
import gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine;
import gov.nist.secauto.metaschema.core.datatype.markup.MarkupLineAdapter;
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;
import java.net.URI;
@SuppressWarnings({
"PMD.DataClass",
"PMD.FieldNamingConventions"
})
@MetaschemaAssembly(
formalName = "Example",
name = "example",
moduleClass = MetaschemaModelModule.class)
public class Example implements IBoundObject {
private final IMetaschemaData __metaschemaData;
@BoundFlag(
formalName = "Example Reference",
name = "ref",
typeAdapter = UriReferenceAdapter.class)
private URI _ref;
@BoundFlag(
name = "path",
typeAdapter = StringAdapter.class)
private String _path;
@BoundField(
formalName = "Example Description",
useName = "description",
typeAdapter = MarkupLineAdapter.class)
private MarkupLine _description;
@BoundField(
formalName = "Remarks",
description = "Any explanatory or helpful information to be provided about the remarks parent.",
useName = "remarks")
private Remarks _remarks;
public Example() {
this(null);
}
public Example(IMetaschemaData data) {
this.__metaschemaData = data;
}
@Override
public IMetaschemaData getMetaschemaData() {
return __metaschemaData;
}
public URI getRef() {
return _ref;
}
public void setRef(URI value) {
_ref = value;
}
public String getPath() {
return _path;
}
public void setPath(String value) {
_path = value;
}
public MarkupLine getDescription() {
return _description;
}
public void setDescription(MarkupLine value) {
_description = 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();
}
}