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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAbstractGenerationState(IModule module, WRITER writer, IConfiguration<SchemaGenerationFeature<?>> configuration, DATATYPE_MANAGER datatypeManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected static AbstractGenerationState.AllowedValueCollectionRetrieve any allowed values that are context independent, meaning they always apply regardless of the location of the node in the larger graph.protected DATATYPE_MANAGERgetTypeNameForDefinition(IDefinition definition, String suffix) booleanisInline(IDefinition definition) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getModulein interfaceIGenerationState<WRITER>
-
getWriter
- Specified by:
getWriterin interfaceIGenerationState<WRITER>
-
getDatatypeManager
-
getMetaschemaIndex
-
isInline
- Specified by:
isInlinein 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:
getTypeNameForDefinitionin interfaceIGenerationState<WRITER>
-