java.lang.Object
dev.metaschema.schemagen.ChoiceNotInlineStrategy
- All Implemented Interfaces:
IInlineStrategy
An inline strategy that inlines definitions unless they are contained within
a choice block.
Definitions that are part of a choice block are not inlined to ensure proper schema generation for mutually exclusive alternatives.
-
Field Summary
Fields inherited from interface dev.metaschema.schemagen.IInlineStrategy
CHOICE_NOT_INLINE, DEFINED_AS_INLINE, NONE_INLINE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisInline(IDefinition definition, ModuleIndex metaschemaIndex) Determine if the provided definition should be inlined in the generated schema.
-
Constructor Details
-
ChoiceNotInlineStrategy
public ChoiceNotInlineStrategy()
-
-
Method Details
-
isInline
Description copied from interface:IInlineStrategyDetermine if the provided definition should be inlined in the generated schema.- Specified by:
isInlinein interfaceIInlineStrategy- Parameters:
definition- the definition to checkmetaschemaIndex- the module index containing definition usage information- Returns:
trueif the definition should be inlined,falseif it should be referenced as a separate type
-