Interface INamedModelInstance
-
- All Superinterfaces:
IInstance
,IModelElement
,IModelInstance
,INamedInstance
,INamedModelElement
- All Known Subinterfaces:
IAssemblyInstance
,IFieldInstance
- All Known Implementing Classes:
AbstractAssemblyInstance
,AbstractFieldInstance
public interface INamedModelInstance extends INamedInstance, IModelInstance
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IFlagContainer
getDefinition()
Retrieve the definition of this instance.Collection<?>
getItemValues(Object instanceValue)
Get the item values for the providedinstanceValue
.default String
getJsonName()
Get the name used for the associated property in JSON/YAML.-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IInstance
getContainingModule
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IModelElement
getModelType, getRemarks
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IModelInstance
getContainingDefinition, getGroupAsName, getGroupAsXmlNamespace, getJsonGroupAsBehavior, getMaxOccurs, getMinOccurs, getParentContainer, getXmlGroupAsBehavior, getXmlGroupAsQName
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamedInstance
getEffectiveDescription, getEffectiveFormalName, getEffectiveName, getValue, getXmlNamespace, getXmlQName, toCoordinates
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamedModelElement
getDescription, getFormalName, getName, getProperties, getPropertyValues, getUseName, hasProperty, hasPropertyValue
-
-
-
-
Method Detail
-
getDefinition
@NonNull IFlagContainer getDefinition()
Description copied from interface:INamedInstance
Retrieve the definition of this instance.- Specified by:
getDefinition
in interfaceINamedInstance
- Returns:
- the corresponding definition
-
getJsonName
default String getJsonName()
Description copied from interface:INamedModelElement
Get the name used for the associated property in JSON/YAML.- Specified by:
getJsonName
in interfaceINamedModelElement
- Returns:
- the JSON property name
-
getItemValues
@NonNull Collection<?> getItemValues(Object instanceValue)
Get the item values for the providedinstanceValue
. An instance may be singular or many valued.- Parameters:
instanceValue
- the instance- Returns:
- the item values or an empty collection if no item values exist
-
-