Module dev.metaschema.databind
Class MetaschemaBindings.MetaschemaBinding
java.lang.Object
dev.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding
- All Implemented Interfaces:
IBoundObject
- Enclosing class:
- MetaschemaBindings
@MetaschemaAssembly(formalName="Metaschema Binding",
description="Defines a binding for a given metaschema identified by a relative URL.",
name="metaschema-binding",
moduleClass=MetaschemaBindingsModule.class)
public static class MetaschemaBindings.MetaschemaBinding
extends Object
implements IBoundObject
Defines a binding for a given metaschema identified by a relative URL.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProvides binding configurations for a given defined assembly within the parent metaschema.static classProvides binding configurations for a given defined field within the parent metaschema. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBindinginstance with no metadata.Constructs a newdev.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBindinginstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newMetaschemaBindings.MetaschemaBinding.DefineAssemblyBindingitem to the underlying collection.booleanAdd a newMetaschemaBindings.MetaschemaBinding.DefineFieldBindingitem to the underlying collection.Get the define Assembly Binding.Get the define Field Binding.getHref()Get the href.Get additional Metaschema-related information for the object (i.e., resource location).booleanRemove the first matchingMetaschemaBindings.MetaschemaBinding.DefineAssemblyBindingitem from the underlying collection.booleanRemove the first matchingMetaschemaBindings.MetaschemaBinding.DefineFieldBindingitem from the underlying collection.voidSet the define Assembly Binding.voidSet the define Field Binding.voidSet the href.toString()
-
Constructor Details
-
MetaschemaBinding
public MetaschemaBinding()Constructs a newdev.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBindinginstance with no metadata. -
MetaschemaBinding
Constructs a newdev.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBindinginstance 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
-
getHref
Get the href.A URL relative to this binding configuration file, pointing to a metaschema definition.
- Returns:
- the href value
-
setHref
Set the href.A URL relative to this binding configuration file, pointing to a metaschema definition.
- Parameters:
value- the href value to set
-
getDefineAssemblyBindings
@NonNull public List<MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding> getDefineAssemblyBindings()Get the define Assembly Binding.Provides binding configurations for a given defined assembly within the parent metaschema.
- Returns:
- the define-assembly-binding value
-
setDefineAssemblyBindings
public void setDefineAssemblyBindings(@NonNull List<MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding> value) Set the define Assembly Binding.Provides binding configurations for a given defined assembly within the parent metaschema.
- Parameters:
value- the define-assembly-binding value to set
-
addDefineAssemblyBinding
public boolean addDefineAssemblyBinding(MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding item) Add a newMetaschemaBindings.MetaschemaBinding.DefineAssemblyBindingitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeDefineAssemblyBinding
public boolean removeDefineAssemblyBinding(MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding item) Remove the first matchingMetaschemaBindings.MetaschemaBinding.DefineAssemblyBindingitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getDefineFieldBindings
@NonNull public List<MetaschemaBindings.MetaschemaBinding.DefineFieldBinding> getDefineFieldBindings()Get the define Field Binding.Provides binding configurations for a given defined field within the parent metaschema.
- Returns:
- the define-field-binding value
-
setDefineFieldBindings
public void setDefineFieldBindings(@NonNull List<MetaschemaBindings.MetaschemaBinding.DefineFieldBinding> value) Set the define Field Binding.Provides binding configurations for a given defined field within the parent metaschema.
- Parameters:
value- the define-field-binding value to set
-
addDefineFieldBinding
Add a newMetaschemaBindings.MetaschemaBinding.DefineFieldBindingitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeDefineFieldBinding
public boolean removeDefineFieldBinding(MetaschemaBindings.MetaschemaBinding.DefineFieldBinding item) Remove the first matchingMetaschemaBindings.MetaschemaBinding.DefineFieldBindingitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-