Class MetaschemaBindings.ModelBinding

java.lang.Object
dev.metaschema.databind.config.binding.MetaschemaBindings.ModelBinding
All Implemented Interfaces:
IBoundObject
Enclosing class:
MetaschemaBindings

@MetaschemaAssembly(formalName="Model Binding", description="Defines binding configurations that apply to a whole model described by a namespace.", name="model-binding", moduleClass=MetaschemaBindingsModule.class) public static class MetaschemaBindings.ModelBinding extends Object implements IBoundObject
Defines binding configurations that apply to a whole model described by a namespace.
  • Constructor Details

    • ModelBinding

      public ModelBinding()
      Constructs a new dev.metaschema.databind.config.binding.MetaschemaBindings.ModelBinding instance with no metadata.
    • ModelBinding

      public ModelBinding(IMetaschemaData data)
      Constructs a new dev.metaschema.databind.config.binding.MetaschemaBindings.ModelBinding 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
    • getNamespace

      @NonNull public URI getNamespace()
      Get the namespace.

      A URI referencing the namespace of one or more related metaschema definitions.

      Returns:
      the namespace value
    • setNamespace

      public void setNamespace(@NonNull URI value)
      Set the namespace.

      A URI referencing the namespace of one or more related metaschema definitions.

      Parameters:
      value - the namespace value to set
    • getJava

      @Nullable public MetaschemaBindings.ModelBinding.Java getJava()
      Get the java Model Binding.

      Java-specific binding configuration for a model namespace.

      Returns:
      the java value, or null if not set
    • setJava

      public void setJava(@Nullable MetaschemaBindings.ModelBinding.Java value)
      Set the java Model Binding.

      Java-specific binding configuration for a model namespace.

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

      public String toString()
      Overrides:
      toString in class Object