Interface IModelDefinitionTypeInfo
-
- All Superinterfaces:
IDefinitionTypeInfo
- All Known Subinterfaces:
IAssemblyDefinitionTypeInfo
,IFieldDefinitionTypeInfo
public interface IModelDefinitionTypeInfo extends IDefinitionTypeInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description com.squareup.javapoet.ClassName
getBaseClassName()
Get the class type information for the base class of the generated class, .com.squareup.javapoet.ClassName
getClassName()
Gets the class type information for the object definition for which this class is being generated.IFlagContainer
getDefinition()
Get the definition associated with this type info.IFlagInstanceTypeInfo
getFlagInstanceTypeInfo(IFlagInstance instance)
Get the type information for the providedinstance
value.Collection<IFlagInstanceTypeInfo>
getFlagInstanceTypeInfos()
Get the type information for all flag instance values on this definition.static IModelDefinitionTypeInfo
newTypeInfo(IFlagContainer definition, ITypeResolver typeResolver)
Construct a new type information object for the provideddefinition
.-
Methods inherited from interface gov.nist.secauto.metaschema.databind.codegen.typeinfo.IDefinitionTypeInfo
getInstanceTypeInfo, getInstanceTypeInfos, getPropertyTypeInfos, getTypeResolver, hasPropertyWithName
-
-
-
-
Method Detail
-
newTypeInfo
@NonNull static IModelDefinitionTypeInfo newTypeInfo(@NonNull IFlagContainer definition, @NonNull ITypeResolver typeResolver)
Construct a new type information object for the provideddefinition
.- Parameters:
definition
- the definition to provide type information fortypeResolver
- use to resolve type information for composite instances- Returns:
- the type information
-
getDefinition
IFlagContainer getDefinition()
Description copied from interface:IDefinitionTypeInfo
Get the definition associated with this type info.- Specified by:
getDefinition
in interfaceIDefinitionTypeInfo
- Returns:
- the definition
-
getBaseClassName
@Nullable com.squareup.javapoet.ClassName getBaseClassName()
Get the class type information for the base class of the generated class, .- Returns:
- the type information or
null
if no base class is configured
-
getClassName
@NonNull com.squareup.javapoet.ClassName getClassName()
Gets the class type information for the object definition for which this class is being generated.- Returns:
- the class's type information
-
getFlagInstanceTypeInfo
@Nullable IFlagInstanceTypeInfo getFlagInstanceTypeInfo(@NonNull IFlagInstance instance)
Get the type information for the providedinstance
value.- Parameters:
instance
- the instance to get type information for- Returns:
- the type information
-
getFlagInstanceTypeInfos
@NonNull Collection<IFlagInstanceTypeInfo> getFlagInstanceTypeInfos()
Get the type information for all flag instance values on this definition.- Returns:
- the type information
-
-