public abstract class AbstractPojoGenericTypeModel<T> extends Object implements PojoGenericTypeModel<T>
PojoGenericTypeModel.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPojoGenericTypeModel(PojoRawTypeModel<? super T> rawTypeModel) |
| Modifier and Type | Method and Description |
|---|---|
Optional<? extends PojoGenericTypeModel<?>> |
getArrayElementType() |
PojoPropertyModel<?> |
getProperty(String propertyName) |
PojoRawTypeModel<? super T> |
getRawType() |
Optional<? extends PojoGenericTypeModel<?>> |
getTypeArgument(Class<?> rawSuperType,
int typeParameterIndex) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNameprotected AbstractPojoGenericTypeModel(PojoRawTypeModel<? super T> rawTypeModel)
public final PojoRawTypeModel<? super T> getRawType()
getRawType in interface PojoTypeModel<T>Class for this type.public PojoPropertyModel<?> getProperty(String propertyName)
getProperty in interface PojoTypeModel<T>public Optional<? extends PojoGenericTypeModel<?>> getTypeArgument(Class<?> rawSuperType, int typeParameterIndex)
getTypeArgument in interface PojoGenericTypeModel<T>rawSuperType - The supertype to resolve type parameters fortypeParameterIndex - The index of the type parameter to resolverawSuperType
at index typeParameterIndex, or an empty optional if the current type
does not extend rawSuperType.
Implementations may decide to return a model of the raw type argument, or to retain generics information.public Optional<? extends PojoGenericTypeModel<?>> getArrayElementType()
getArrayElementType in interface PojoGenericTypeModel<T>Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.