Module dev.metaschema.databind
Package dev.metaschema.databind.model
Interface IBoundInstanceModelNamed<ITEM>
- Type Parameters:
ITEM- the Java type of the bound item
- All Superinterfaces:
IAttributable,IBoundInstance<ITEM>,IBoundInstanceModel<ITEM>,IBoundModelElement,IBoundModelObject<ITEM>,IBoundProperty<ITEM>,IDefaultable,IDescribable,IFeatureJavaField,IGroupable,IInstance,IInstanceAbsolute,IItemValueHandler<ITEM>,IJsonInstance,IJsonNamed,IModelElement,IModelElementVisitable,IModelInstance,IModelInstanceAbsolute,INamed,INamedInstance,INamedModelElement,INamedModelInstance,INamedModelInstanceAbsolute,IValued,IValuedMutable
- All Known Subinterfaces:
IBoundInstanceModelAssembly,IBoundInstanceModelField<ITEM>,IBoundInstanceModelFieldComplex,IBoundInstanceModelFieldScalar
public interface IBoundInstanceModelNamed<ITEM>
extends IBoundInstanceModel<ITEM>, INamedModelInstanceAbsolute
Represents a bound model instance that is named and can be addressed by that
name in the Metaschema model.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.model.IAttributable
IAttributable.Key -
Field Summary
Fields inherited from interface dev.metaschema.core.model.IAttributable
DEFAULT_PROPERY_NAMESPACEFields inherited from interface dev.metaschema.core.model.IGroupable
DEFAULT_GROUP_AS_MAX_OCCURS, DEFAULT_GROUP_AS_MIN_OCCURS, DEFAULT_JSON_GROUP_AS_BEHAVIOR, DEFAULT_XML_GROUP_AS_BEHAVIOR -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanHandleXmlQName(IEnhancedQName qname) Determine if the provided XML qualified name is associated with this property.Retrieve the definition of this instance.default IBoundInstanceFlagGet the JSON key flag instance for this model instance, if one is configured.default IntegergetIndex()Retrieve the index value to use for binary naming.default IBoundInstanceFlaggetItemJsonKey(Object item) Get the JSON key flag for the provided item.default Collection<? extends Object>getItemValues(Object value) Get the item values associated with the provided value.default IBoundInstanceFlagGet the JSON key associated with this instance.default StringgetName()Retrieve the name of the model element.Methods inherited from interface dev.metaschema.core.model.IAttributable
getProperties, getPropertyValues, hasProperty, hasPropertyValueMethods inherited from interface dev.metaschema.databind.model.IBoundInstance
getContainingModule, getValue, setValueMethods inherited from interface dev.metaschema.databind.model.IBoundInstanceModel
deepCopy, getCollectionInfo, getContainingDefinition, getResolvedDefaultValueMethods inherited from interface dev.metaschema.core.model.IDefaultable
getDefaultValue, getEffectiveDefaultValueMethods inherited from interface dev.metaschema.core.model.IDescribable
getDescription, getEffectiveDescription, getEffectiveFormalName, getFormalNameMethods inherited from interface dev.metaschema.databind.model.IFeatureJavaField
getField, getItemType, getTypeMethods inherited from interface dev.metaschema.core.model.IGroupable
getEffectiveXmlGroupAsQName, getGroupAsName, getJsonGroupAsBehavior, getMaxOccurs, getMinOccurs, getXmlGroupAsBehaviorMethods inherited from interface dev.metaschema.core.model.IInstance
toCoordinatesMethods inherited from interface dev.metaschema.databind.model.info.IItemValueHandler
deepCopyItem, readItem, writeItemMethods inherited from interface dev.metaschema.core.model.IModelElement
getModelType, getRemarksMethods inherited from interface dev.metaschema.core.model.IModelElementVisitable
acceptMethods inherited from interface dev.metaschema.core.model.IModelInstance
getContainingDefinition, getParentContainer, isEffectiveValueWrappedInXmlMethods inherited from interface dev.metaschema.core.model.INamed
getEffectiveIndex, getEffectiveName, getQName, getUseIndex, getUseNameMethods inherited from interface dev.metaschema.core.model.INamedInstance
getReferencedDefinitionQName, isInlineDefinitionMethods inherited from interface dev.metaschema.core.model.INamedModelInstance
hasJsonKeyMethods inherited from interface dev.metaschema.core.model.INamedModelInstanceAbsolute
getJsonName
-
Method Details
-
getDefinition
Description copied from interface:INamedInstanceRetrieve the definition of this instance.- Specified by:
getDefinitionin interfaceINamedInstance- Specified by:
getDefinitionin interfaceINamedModelInstance- Returns:
- the corresponding definition
-
getName
Description copied from interface:INamedRetrieve the name of the model element. -
getIndex
Description copied from interface:INamedRetrieve the index value to use for binary naming. -
getEffectiveJsonKey
Description copied from interface:INamedModelInstanceGet the JSON key flag instance for this model instance, if one is configured.- Specified by:
getEffectiveJsonKeyin interfaceINamedModelInstance- Specified by:
getEffectiveJsonKeyin interfaceINamedModelInstanceAbsolute- Returns:
- the JSON key flag instance or
nullif no JSON key is configured
-
getJsonKey
Description copied from interface:INamedModelInstanceGet the JSON key associated with this instance.- Specified by:
getJsonKeyin interfaceINamedModelInstance- Specified by:
getJsonKeyin interfaceINamedModelInstanceAbsolute- Returns:
- the configured JSON key or
nullif no JSON key is configured
-
getItemJsonKey
Description copied from interface:IBoundInstanceModelGet the JSON key flag for the provided item.- Specified by:
getItemJsonKeyin interfaceIBoundInstanceModel<ITEM>- Parameters:
item- the item to get the JSON key flag for- Returns:
- the JSON key flag
-
getItemValues
Description copied from interface:IBoundInstanceModelGet the item values associated with the provided value.- Specified by:
getItemValuesin interfaceIBoundInstanceModel<ITEM>- Specified by:
getItemValuesin interfaceIGroupable- Parameters:
value- the value which may be a singleton or a collection- Returns:
- the ordered collection of values
-
canHandleXmlQName
Description copied from interface:IBoundModelObjectDetermine if the provided XML qualified name is associated with this property.- Specified by:
canHandleXmlQNamein interfaceIBoundModelObject<ITEM>- Parameters:
qname- the XML qualified name of the property being parsed- Returns:
trueif the instance will handle this name, orfalseotherwise
-