Module dev.metaschema.databind
Class MetaschemaBindings.MetaschemaBinding.DefineFieldBinding
java.lang.Object
dev.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding
- All Implemented Interfaces:
IBoundObject
- Enclosing class:
- MetaschemaBindings.MetaschemaBinding
@MetaschemaAssembly(formalName="Define Field Binding",
description="Provides binding configurations for a given defined field within the parent metaschema.",
name="define-field-binding",
moduleClass=MetaschemaBindingsModule.class)
public static class MetaschemaBindings.MetaschemaBinding.DefineFieldBinding
extends Object
implements IBoundObject
Provides binding configurations for a given defined field within the parent
metaschema.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classField and assembly binding configurations for Java bound classes.static classProvides binding configurations for a property within the parent definition. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBindinginstance with no metadata.Constructs a newdev.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBindinginstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newMetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBindingitem to the underlying collection.getJava()Get the java Object Definition Binding.Get additional Metaschema-related information for the object (i.e., resource location).getName()Get the name.Get the property Binding.Get the target.booleanRemove the first matchingMetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBindingitem from the underlying collection.voidSet the java Object Definition Binding.voidSet the name.voidsetPropertyBindings(List<MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBinding> value) Set the property Binding.voidSet the target.toString()
-
Constructor Details
-
DefineFieldBinding
public DefineFieldBinding()Constructs a newdev.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBindinginstance with no metadata. -
DefineFieldBinding
Constructs a newdev.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBindinginstance 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
-
getName
Get the name.The name of the metaschema field. Used for top-level definitions.
- Returns:
- the name value, or
nullif not set
-
setName
Set the name.The name of the metaschema field. Used for top-level definitions.
- Parameters:
value- the name value to set, ornullto clear
-
getTarget
Get the target.A Metapath expression targeting the field definition(s) within the metaschema. Used for inline definitions.
- Returns:
- the target value, or
nullif not set
-
setTarget
Set the target.A Metapath expression targeting the field definition(s) within the metaschema. Used for inline definitions.
- Parameters:
value- the target value to set, ornullto clear
-
getJava
Get the java Object Definition Binding.Field and assembly binding configurations for Java bound classes.
- Returns:
- the java value, or
nullif not set
-
setJava
Set the java Object Definition Binding.Field and assembly binding configurations for Java bound classes.
- Parameters:
value- the java value to set, ornullto clear
-
getPropertyBindings
@NonNull public List<MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBinding> getPropertyBindings()Get the property Binding.Provides binding configurations for a property within the parent definition.
- Returns:
- the property-binding value
-
setPropertyBindings
public void setPropertyBindings(@NonNull List<MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBinding> value) Set the property Binding.Provides binding configurations for a property within the parent definition.
- Parameters:
value- the property-binding value to set
-
addPropertyBinding
public boolean addPropertyBinding(MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBinding item) Add a newMetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBindingitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removePropertyBinding
public boolean removePropertyBinding(MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBinding item) Remove the first matchingMetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBindingitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-