Module dev.metaschema.databind
Class MetaschemaBindings.ModelBinding
java.lang.Object
dev.metaschema.databind.config.binding.MetaschemaBindings.ModelBinding
- All Implemented Interfaces:
dev.metaschema.core.model.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 dev.metaschema.core.model.IBoundObject
Defines binding configurations that apply to a whole model described by a
namespace.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJava-specific binding configuration for a model namespace. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.databind.config.binding.MetaschemaBindings.ModelBindinginstance with no metadata.ModelBinding(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.databind.config.binding.MetaschemaBindings.ModelBindinginstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptiongetJava()Get the java Model Binding.dev.metaschema.core.model.IMetaschemaDataGet the namespace.voidSet the java Model Binding.voidsetNamespace(URI value) Set the namespace.toString()
-
Constructor Details
-
ModelBinding
public ModelBinding()Constructs a newdev.metaschema.databind.config.binding.MetaschemaBindings.ModelBindinginstance with no metadata. -
ModelBinding
Constructs a newdev.metaschema.databind.config.binding.MetaschemaBindings.ModelBindinginstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getNamespace
Get the namespace.A URI referencing the namespace of one or more related metaschema definitions.
- Returns:
- the namespace value
-
setNamespace
Set the namespace.A URI referencing the namespace of one or more related metaschema definitions.
- Parameters:
value- the namespace value to set
-
getJava
Get the java Model Binding.Java-specific binding configuration for a model namespace.
- Returns:
- the java value, or
nullif not set
-
setJava
Set the java Model Binding.Java-specific binding configuration for a model namespace.
- Parameters:
value- the java value to set, ornullto clear
-
toString
-