T
- The type of the class the ClassModel representspublic final class ClassModel<T> extends Object
Modifier and Type | Method | Description |
---|---|---|
static <S> ClassModelBuilder<S> |
builder(Class<S> type) |
Creates a new Class Model builder instance using reflection.
|
boolean |
equals(Object o) |
|
String |
getDiscriminator() |
Returns the discriminator key.
|
String |
getDiscriminatorKey() |
Gets the value for the discriminator.
|
PropertyModel<?> |
getIdPropertyModel() |
Returns the
PropertyModel mapped as the id property for this ClassModel |
String |
getName() |
Returns the name of the class represented by this ClassModel
|
PropertyModel<?> |
getPropertyModel(String propertyName) |
Gets a
PropertyModel by the property name. |
List<PropertyModel<?>> |
getPropertyModels() |
Returns all the properties on this model
|
Class<T> |
getType() |
|
int |
hashCode() |
|
boolean |
hasTypeParameters() |
|
String |
toString() |
|
boolean |
useDiscriminator() |
public static <S> ClassModelBuilder<S> builder(Class<S> type)
S
- the type of the classtype
- the POJO class to reflect and configure the builder with.clazz
.public boolean hasTypeParameters()
public boolean useDiscriminator()
public String getDiscriminatorKey()
public String getDiscriminator()
public PropertyModel<?> getPropertyModel(String propertyName)
PropertyModel
by the property name.propertyName
- the PropertyModel's property namepublic List<PropertyModel<?>> getPropertyModels()
public PropertyModel<?> getIdPropertyModel()
PropertyModel
mapped as the id property for this ClassModelpublic String getName()