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