Interface IAssemblyDefinition
-
- All Superinterfaces:
IAssembly,IConstrained,IContainer,IDefinition,gov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureModelConstrained,gov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureValueConstrained,IFlagContainer,IModelConstrained,IModelContainer,IModelElement,INamedModelElement,IValueConstrained
public interface IAssemblyDefinition extends IFlagContainer, IModelContainer, IAssembly, gov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureModelConstrained
-
-
Field Summary
-
Fields inherited from interface gov.nist.secauto.metaschema.core.model.IDefinition
DEFAULT_DEFINITION_MODEL_SCOPE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IAssemblyInstancegetInlineInstance()IfIDefinition.isInline()istrue, return the instance the definition is inlined for.default IAssemblyDefinitiongetOwningDefinition()Retrieve the Metaschema definition containing this container.default StringgetRootJsonName()Get the name used for the associated property in JSON/YAML.StringgetRootName()Get the root name if this assembly is a top-level root.default QNamegetRootXmlQName()Get the XML qualified name to use in XML as the root element.booleanisRoot()Check if the assembly is a top-level root assembly.default booleanisSimple()Identifies if the field has flags or not, or if it has a complex structure (i.e, model).-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IAssembly
getModelType
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IDefinition
getModuleScope, isInline, toCoordinates
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureModelConstrained
addConstraint, addConstraint, addConstraint, getConstraintSupport, getHasCardinalityConstraints, getIndexConstraints, getUniqueConstraints
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureValueConstrained
addConstraint, addConstraint, addConstraint, addConstraint, getAllowedValuesConstraints, getConstraints, getExpectConstraints, getIndexHasKeyConstraints, getMatchesConstraints
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IFlagContainer
getFlagInstanceByName, getFlagInstances, getJsonKeyFlagInstance, hasJsonKey
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IModelContainer
getAssemblyInstanceByName, getAssemblyInstances, getChoiceInstances, getFieldInstanceByName, getFieldInstances, getModelInstanceByName, getModelInstances, getNamedModelInstances
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IModelElement
getContainingModule, getRemarks
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamedModelElement
getDescription, getEffectiveDescription, getEffectiveFormalName, getEffectiveName, getFormalName, getJsonName, getName, getProperties, getPropertyValues, getUseName, hasProperty, hasPropertyValue
-
-
-
-
Method Detail
-
isRoot
boolean isRoot()
Check if the assembly is a top-level root assembly.- Returns:
trueif the assembly is a top-level root, orfalseotherwise
-
getRootName
String getRootName()
Get the root name if this assembly is a top-level root.- Returns:
- the root name if this assembly is a top-level root, or
nullotherwise
-
getRootXmlQName
default QName getRootXmlQName()
Get the XML qualified name to use in XML as the root element.- Returns:
- the root XML qualified name if this assembly is a top-level root, or
nullotherwise
-
getRootJsonName
default String getRootJsonName()
Get the name used for the associated property in JSON/YAML.- Returns:
- the root JSON property name if this assembly is a top-level root, or
nullotherwise
-
getInlineInstance
IAssemblyInstance getInlineInstance()
Description copied from interface:IDefinitionIfIDefinition.isInline()istrue, return the instance the definition is inlined for.- Specified by:
getInlineInstancein interfaceIDefinition- Specified by:
getInlineInstancein interfaceIFlagContainer- Returns:
- the instance or
nullotherwise
-
getOwningDefinition
default IAssemblyDefinition getOwningDefinition()
Description copied from interface:IFlagContainerRetrieve the Metaschema definition containing this container.- Specified by:
getOwningDefinitionin interfaceIContainer- Specified by:
getOwningDefinitionin interfaceIFlagContainer- Specified by:
getOwningDefinitionin interfaceIModelContainer- Returns:
- the containing Metaschema definition
-
isSimple
default boolean isSimple()
Description copied from interface:IFlagContainerIdentifies if the field has flags or not, or if it has a complex structure (i.e, model).- Specified by:
isSimplein interfaceIFlagContainer- Returns:
trueif the field has no flags or model, or false otherwise
-
-