001package com.example.metaschema; 002 003import gov.nist.secauto.metaschema.core.datatype.adapter.StringAdapter; 004import gov.nist.secauto.metaschema.core.model.IBoundObject; 005import gov.nist.secauto.metaschema.core.model.IMetaschemaData; 006import gov.nist.secauto.metaschema.databind.model.annotations.BoundFlag; 007import gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaAssembly; 008import java.lang.Override; 009import java.lang.String; 010import org.apache.commons.lang3.builder.ReflectionToStringBuilder; 011import org.apache.commons.lang3.builder.ToStringStyle; 012 013/** 014 * A Metapath expression identifying the model node that the constraints will be applied to. 015 */ 016@MetaschemaAssembly( 017 description = "A Metapath expression identifying the model node that the constraints will be applied to.", 018 name = "metaschema-metapath", 019 moduleClass = MetaschemaModelModule.class 020) 021public class MetaschemaMetapath implements IBoundObject { 022 private final IMetaschemaData __metaschemaData; 023 024 @BoundFlag( 025 name = "target", 026 required = true, 027 typeAdapter = StringAdapter.class 028 ) 029 private String _target; 030 031 public MetaschemaMetapath() { 032 this(null); 033 } 034 035 public MetaschemaMetapath(IMetaschemaData data) { 036 this.__metaschemaData = data; 037 } 038 039 @Override 040 public IMetaschemaData getMetaschemaData() { 041 return __metaschemaData; 042 } 043 044 public String getTarget() { 045 return _target; 046 } 047 048 public void setTarget(String value) { 049 _target = value; 050 } 051 052 @Override 053 public String toString() { 054 return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString(); 055 } 056}