java.lang.Object
dev.metaschema.databind.model.metaschema.binding.MetapathContext
All Implemented Interfaces:
IBoundObject

@MetaschemaAssembly(name="metapath-context", moduleClass=MetaschemaModelModule.class) public class MetapathContext extends Object implements IBoundObject
A binding class for the metapath-context definition.
  • Constructor Details

    • MetapathContext

      public MetapathContext()
      Constructs a new dev.metaschema.databind.model.metaschema.binding.MetapathContext instance with no metadata.
    • MetapathContext

      public MetapathContext(IMetaschemaData data)
      Constructs a new dev.metaschema.databind.model.metaschema.binding.MetapathContext instance with the specified metadata.
      Parameters:
      data - the metaschema data, or null if none
  • Method Details

    • getMetaschemaData

      public IMetaschemaData getMetaschemaData()
      Description copied from interface: IBoundObject
      Get additional Metaschema-related information for the object (i.e., resource location).
      Specified by:
      getMetaschemaData in interface IBoundObject
      Returns:
      the Metaschema-related information
    • getMetapaths

      @NonNull public List<MetaschemaMetapath> getMetapaths()
      Get the metapath property.

      A Metapath expression identifying the model node that the constraints will be applied to.

      Returns:
      the metapath value
    • setMetapaths

      public void setMetapaths(@NonNull List<MetaschemaMetapath> value)
      Set the metapath property.

      A Metapath expression identifying the model node that the constraints will be applied to.

      Parameters:
      value - the metapath value to set
    • addMetapath

      public boolean addMetapath(MetaschemaMetapath item)
      Add a new MetaschemaMetapath item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeMetapath

      public boolean removeMetapath(MetaschemaMetapath item)
      Remove the first matching MetaschemaMetapath item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • getConstraints

      @Nullable public AssemblyConstraints getConstraints()
      Get the constraints property.
      Returns:
      the constraints value, or null if not set
    • setConstraints

      public void setConstraints(@Nullable AssemblyConstraints value)
      Set the constraints property.
      Parameters:
      value - the constraints value to set, or null to clear
    • getContexts

      @NonNull public List<MetapathContext> getContexts()
      Get the context property.
      Returns:
      the context value
    • setContexts

      public void setContexts(@NonNull List<MetapathContext> value)
      Set the context property.
      Parameters:
      value - the context value to set
    • addContext

      public boolean addContext(MetapathContext item)
      Add a new MetapathContext item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeContext

      public boolean removeContext(MetapathContext item)
      Remove the first matching MetapathContext item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • getRemarks

      @Nullable public Remarks getRemarks()
      Get the remarks.

      Any explanatory or helpful information to be provided about the remarks parent.

      Returns:
      the remarks value, or null if not set
    • setRemarks

      public void setRemarks(@Nullable Remarks value)
      Set the remarks.

      Any explanatory or helpful information to be provided about the remarks parent.

      Parameters:
      value - the remarks value to set, or null to clear
    • toString

      public String toString()
      Overrides:
      toString in class Object