Example.java
package com.example.metaschema;
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 java.lang.Override;
import java.lang.String;
import java.net.URI;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@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();
}
}