Module dev.metaschema.databind
Class MetaschemaBindings
java.lang.Object
dev.metaschema.databind.config.binding.MetaschemaBindings
- All Implemented Interfaces:
IBoundObject
@MetaschemaAssembly(formalName="Metaschema Bindings",
description="The root element for a set of metaschema binding customizations.",
name="metaschema-bindings",
moduleClass=MetaschemaBindingsModule.class,
rootName="metaschema-bindings")
public class MetaschemaBindings
extends Object
implements IBoundObject
The root element for a set of metaschema binding customizations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefines a binding for a given metaschema identified by a relative URL.static classDefines binding configurations that apply to a whole model described by a namespace. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.databind.config.binding.MetaschemaBindingsinstance with no metadata.Constructs a newdev.metaschema.databind.config.binding.MetaschemaBindingsinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newMetaschemaBindings.MetaschemaBindingitem to the underlying collection.booleanAdd a newMetaschemaBindings.ModelBindingitem to the underlying collection.Get the metaschema Binding.Get additional Metaschema-related information for the object (i.e., resource location).Get the model Binding.booleanRemove the first matchingMetaschemaBindings.MetaschemaBindingitem from the underlying collection.booleanRemove the first matchingMetaschemaBindings.ModelBindingitem from the underlying collection.voidSet the metaschema Binding.voidSet the model Binding.toString()
-
Constructor Details
-
MetaschemaBindings
public MetaschemaBindings()Constructs a newdev.metaschema.databind.config.binding.MetaschemaBindingsinstance with no metadata. -
MetaschemaBindings
Constructs a newdev.metaschema.databind.config.binding.MetaschemaBindingsinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
Description copied from interface:IBoundObjectGet additional Metaschema-related information for the object (i.e., resource location).- Specified by:
getMetaschemaDatain interfaceIBoundObject- Returns:
- the Metaschema-related information
-
getModelBindings
Get the model Binding.Defines binding configurations that apply to a whole model described by a namespace.
- Returns:
- the model-binding value
-
setModelBindings
Set the model Binding.Defines binding configurations that apply to a whole model described by a namespace.
- Parameters:
value- the model-binding value to set
-
addModelBinding
Add a newMetaschemaBindings.ModelBindingitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeModelBinding
Remove the first matchingMetaschemaBindings.ModelBindingitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getMetaschemaBindings
Get the metaschema Binding.Defines a binding for a given metaschema identified by a relative URL.
- Returns:
- the metaschema-binding value
-
setMetaschemaBindings
Set the metaschema Binding.Defines a binding for a given metaschema identified by a relative URL.
- Parameters:
value- the metaschema-binding value to set
-
addMetaschemaBinding
Add a newMetaschemaBindings.MetaschemaBindingitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeMetaschemaBinding
Remove the first matchingMetaschemaBindings.MetaschemaBindingitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-