Interface ITypeInfo
-
- All Known Subinterfaces:
IFieldValueTypeInfo
,IFlagInstanceTypeInfo
,IInstanceTypeInfo
,IModelInstanceTypeInfo
public interface ITypeInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getBaseName()
Get the name to use for the property.default String
getItemBaseName()
The name to use for Java constructs that refer to the item.String
getJavaFieldName()
Gets the name of the Java field for this property.com.squareup.javapoet.TypeName
getJavaFieldType()
Gets the type of the associated Java field for the property.default com.squareup.javapoet.TypeName
getJavaItemType()
Gets the type of the property's item.String
getPropertyName()
Get the Java property name for the property.
-
-
-
Method Detail
-
getBaseName
@NonNull String getBaseName()
Get the name to use for the property. If the property is a collection type, then this will be the group-as name, else this will be the use name or the name if not use name is set.- Returns:
- the name
-
getItemBaseName
@NonNull default String getItemBaseName()
The name to use for Java constructs that refer to the item. This is used for when a field is collection-based and there is a need to refer to a single item, such as in an add/remove method name.- Returns:
- the item base name
-
getPropertyName
@NonNull String getPropertyName()
Get the Java property name for the property.- Returns:
- the Java property name
-
getJavaFieldName
@NonNull String getJavaFieldName()
Gets the name of the Java field for this property.- Returns:
- the Java field name
-
getJavaFieldType
@NonNull com.squareup.javapoet.TypeName getJavaFieldType()
Gets the type of the associated Java field for the property.- Returns:
- the Java type for the field
-
getJavaItemType
@NonNull default com.squareup.javapoet.TypeName getJavaItemType()
Gets the type of the property's item.- Returns:
- the Java type for the item
-
-