Class AbstractGenerationState<WRITER,DATATYPE_MANAGER extends gov.nist.secauto.metaschema.schemagen.datatype.IDatatypeManager>
java.lang.Object
gov.nist.secauto.metaschema.schemagen.AbstractGenerationState<WRITER,DATATYPE_MANAGER>
- All Implemented Interfaces:
IGenerationState<WRITER>
public abstract class AbstractGenerationState<WRITER,DATATYPE_MANAGER extends gov.nist.secauto.metaschema.schemagen.datatype.IDatatypeManager>
extends Object
implements IGenerationState<WRITER>
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionAbstractGenerationState
(IModule module, WRITER writer, IConfiguration<SchemaGenerationFeature<?>> configuration, DATATYPE_MANAGER datatypeManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected static AbstractGenerationState.AllowedValueCollection
Retrieve any allowed values that are context independent, meaning they always apply regardless of the location of the node in the larger graph.protected DATATYPE_MANAGER
getTypeNameForDefinition
(IDefinition definition, String suffix) boolean
isInline
(IDefinition definition) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gov.nist.secauto.metaschema.schemagen.IGenerationState
flushWriter, getRootDefinitions
-
Constructor Details
-
AbstractGenerationState
public AbstractGenerationState(@NonNull IModule module, @NonNull WRITER writer, @NonNull IConfiguration<SchemaGenerationFeature<?>> configuration, @NonNull DATATYPE_MANAGER datatypeManager)
-
-
Method Details
-
getModule
- Specified by:
getModule
in interfaceIGenerationState<WRITER>
-
getWriter
- Specified by:
getWriter
in interfaceIGenerationState<WRITER>
-
getDatatypeManager
-
getMetaschemaIndex
-
isInline
- Specified by:
isInline
in interfaceIGenerationState<WRITER>
-
getContextIndependentEnumeratedValues
@NonNull protected static AbstractGenerationState.AllowedValueCollection getContextIndependentEnumeratedValues(@NonNull IValuedDefinition definition) Retrieve any allowed values that are context independent, meaning they always apply regardless of the location of the node in the larger graph.- Parameters:
definition
- the definition to get allowed values for- Returns:
- the list of allowed values or an empty list
-
getTypeNameForDefinition
@NonNull public String getTypeNameForDefinition(@NonNull IDefinition definition, @Nullable String suffix) - Specified by:
getTypeNameForDefinition
in interfaceIGenerationState<WRITER>
-