Interface IDefinitionTypeInfo
-
- All Known Subinterfaces:
IAssemblyDefinitionTypeInfo
,IFieldDefinitionTypeInfo
,IModelDefinitionTypeInfo
public interface IDefinitionTypeInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IDefinition
getDefinition()
Get the definition associated with this type info.IInstanceTypeInfo
getInstanceTypeInfo(INamedInstance instance)
Get the type information for the providedinstance
value.Collection<IInstanceTypeInfo>
getInstanceTypeInfos()
Get the type information for all instance values on this definition.Collection<ITypeInfo>
getPropertyTypeInfos()
Get the type information for all Java class properties associated with a given instance.ITypeResolver
getTypeResolver()
Gets the resolver which can be used to lookup Java type information for Module objects.boolean
hasPropertyWithName(String propertyName)
Check's if the Java class to be generated will have a property with the given name.
-
-
-
Method Detail
-
getDefinition
@NonNull IDefinition getDefinition()
Get the definition associated with this type info.- Returns:
- the definition
-
getTypeResolver
@NonNull ITypeResolver getTypeResolver()
Gets the resolver which can be used to lookup Java type information for Module objects.- Returns:
- the type resolver
-
hasPropertyWithName
boolean hasPropertyWithName(@NonNull String propertyName)
Check's if the Java class to be generated will have a property with the given name.- Parameters:
propertyName
- the property name to look for- Returns:
true
if there is an associated property with the name orfalse
otherwise
-
getInstanceTypeInfo
@Nullable IInstanceTypeInfo getInstanceTypeInfo(@NonNull INamedInstance instance)
Get the type information for the providedinstance
value.- Parameters:
instance
- the instance to get type information for- Returns:
- the type information
-
getInstanceTypeInfos
@NonNull Collection<IInstanceTypeInfo> getInstanceTypeInfos()
Get the type information for all instance values on this definition.- Returns:
- the type information
-
getPropertyTypeInfos
@NonNull Collection<ITypeInfo> getPropertyTypeInfos()
Get the type information for all Java class properties associated with a given instance.- Returns:
- the type information
-
-