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 Modifier and Type Class Description static class
AbstractGenerationState.AllowedValueCollection
-
Constructor Summary
Constructors Constructor Description AbstractGenerationState(IModule module, WRITER writer, IConfiguration<SchemaGenerationFeature<?>> configuration, DATATYPE_MANAGER datatypeManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static AbstractGenerationState.AllowedValueCollection
getContextIndependentEnumeratedValues(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.protected DATATYPE_MANAGER
getDatatypeManager()
ModuleIndex
getMetaschemaIndex()
IModule
getModule()
String
getTypeNameForDefinition(IDefinition definition, String suffix)
WRITER
getWriter()
boolean
isInline(IDefinition definition)
protected static CharSequence
toCamelCase(String text)
-
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
-
-
-
-
Constructor Detail
-
AbstractGenerationState
public AbstractGenerationState(@NonNull IModule module, @NonNull WRITER writer, @NonNull IConfiguration<SchemaGenerationFeature<?>> configuration, @NonNull DATATYPE_MANAGER datatypeManager)
-
-
Method Detail
-
getModule
public IModule getModule()
- Specified by:
getModule
in interfaceIGenerationState<WRITER>
-
getWriter
public WRITER getWriter()
- Specified by:
getWriter
in interfaceIGenerationState<WRITER>
-
getDatatypeManager
@NonNull protected DATATYPE_MANAGER getDatatypeManager()
-
getMetaschemaIndex
@NonNull public ModuleIndex getMetaschemaIndex()
-
isInline
public boolean isInline(@NonNull IDefinition definition)
- 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)
-
toCamelCase
@NonNull protected static CharSequence toCamelCase(String text)
-
-