T
- the type of the property that the PropertyModel represents.public final class PropertyModel<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> PropertyModelBuilder<T> |
builder()
Create a new
PropertyModelBuilder |
boolean |
equals(java.lang.Object o) |
Codec<T> |
getCodec() |
java.lang.String |
getName() |
PropertyAccessor<T> |
getPropertyAccessor() |
java.lang.String |
getReadName() |
org.bson.codecs.pojo.TypeData<T> |
getTypeData() |
java.lang.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.
|
java.lang.String |
toString() |
java.lang.Boolean |
useDiscriminator() |
public static <T> PropertyModelBuilder<T> builder()
PropertyModelBuilder
T
- the type of the propertypublic java.lang.String getName()
public java.lang.String getWriteName()
public java.lang.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 java.lang.Boolean useDiscriminator()
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