T
- the type of the property that the PropertyModel represents.public final class PropertyModel<T> extends Object
Modifier and Type | Method and Description |
---|---|
static <T> PropertyModelBuilder<T> |
builder()
Create a new
PropertyModelBuilder |
boolean |
equals(Object o) |
Codec<T> |
getCodec() |
String |
getName() |
PropertyAccessor<T> |
getPropertyAccessor() |
String |
getReadName() |
org.bson.codecs.pojo.TypeData<T> |
getTypeData() |
String |
getWriteName() |
int |
hashCode() |
boolean |
isReadable()
Property is readable.
|
boolean |
isWritable()
Property is writable.
|
boolean |
shouldSerialize(T value)
Returns true if the value should be serialized.
|
String |
toString() |
Boolean |
useDiscriminator() |
public static <T> PropertyModelBuilder<T> builder()
PropertyModelBuilder
T
- the type of the propertypublic String getName()
public String getWriteName()
public String getReadName()
public boolean isWritable()
public boolean isReadable()
public org.bson.codecs.pojo.TypeData<T> getTypeData()
public boolean shouldSerialize(T value)
value
- the value to checkpublic PropertyAccessor<T> getPropertyAccessor()
public Boolean useDiscriminator()