Interface PojoTypeModel<T>
-
- Type Parameters:
T- The pojo type
- All Known Subinterfaces:
PojoGenericTypeModel<T>,PojoRawTypeModel<T>
- All Known Implementing Classes:
AbstractPojoGenericTypeModel,AbstractPojoHCAnnRawTypeModel,AbstractPojoRawTypeModel,GenericContextAwarePojoGenericTypeModel,SyntheticPojoGenericTypeModel
public interface PojoTypeModel<T>A model representing a POJO type: its structure (properties and their type), its name, ...Most of the time, type models represent a Java class, either
raworparameterized. However, it is also possible that a given type model represents a subset of all instances of a given Java class, which all follow a common convention regarding their structure.For example, a type model could represent a Map-based type where properties are defined by the map entries and where all instances are required to have a value of type
Integerfor the key"age".
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringname()PojoPropertyModel<?>property(String propertyName)PojoRawTypeModel<? super T>rawType()
-
-
-
Method Detail
-
name
String name()
- Returns:
- A human-readable name for this type.
-
rawType
PojoRawTypeModel<? super T> rawType()
- Returns:
- A representation of the closest parent Java
Classfor this type.
-
property
PojoPropertyModel<?> property(String propertyName)
-
-