001package com.example.metaschema;
002
003import gov.nist.secauto.metaschema.core.datatype.adapter.StringAdapter;
004import gov.nist.secauto.metaschema.core.datatype.adapter.UriReferenceAdapter;
005import gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine;
006import gov.nist.secauto.metaschema.core.datatype.markup.MarkupLineAdapter;
007import gov.nist.secauto.metaschema.core.model.IBoundObject;
008import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
009import gov.nist.secauto.metaschema.databind.model.annotations.BoundField;
010import gov.nist.secauto.metaschema.databind.model.annotations.BoundFlag;
011import gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaAssembly;
012import java.lang.Override;
013import java.lang.String;
014import java.net.URI;
015import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
016import org.apache.commons.lang3.builder.ToStringStyle;
017
018@MetaschemaAssembly(
019    formalName = "Example",
020    name = "example",
021    moduleClass = MetaschemaModelModule.class
022)
023public class Example implements IBoundObject {
024  private final IMetaschemaData __metaschemaData;
025
026  @BoundFlag(
027      formalName = "Example Reference",
028      name = "ref",
029      typeAdapter = UriReferenceAdapter.class
030  )
031  private URI _ref;
032
033  @BoundFlag(
034      name = "path",
035      typeAdapter = StringAdapter.class
036  )
037  private String _path;
038
039  @BoundField(
040      formalName = "Example Description",
041      useName = "description",
042      typeAdapter = MarkupLineAdapter.class
043  )
044  private MarkupLine _description;
045
046  @BoundField(
047      formalName = "Remarks",
048      description = "Any explanatory or helpful information to be provided about the remarks parent.",
049      useName = "remarks"
050  )
051  private Remarks _remarks;
052
053  public Example() {
054    this(null);
055  }
056
057  public Example(IMetaschemaData data) {
058    this.__metaschemaData = data;
059  }
060
061  @Override
062  public IMetaschemaData getMetaschemaData() {
063    return __metaschemaData;
064  }
065
066  public URI getRef() {
067    return _ref;
068  }
069
070  public void setRef(URI value) {
071    _ref = value;
072  }
073
074  public String getPath() {
075    return _path;
076  }
077
078  public void setPath(String value) {
079    _path = value;
080  }
081
082  public MarkupLine getDescription() {
083    return _description;
084  }
085
086  public void setDescription(MarkupLine value) {
087    _description = value;
088  }
089
090  public Remarks getRemarks() {
091    return _remarks;
092  }
093
094  public void setRemarks(Remarks value) {
095    _remarks = value;
096  }
097
098  @Override
099  public String toString() {
100    return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString();
101  }
102}