Package org.bson.codecs.pojo
Class PropertyModel<T>
java.lang.Object
org.bson.codecs.pojo.PropertyModel<T>
- Type Parameters:
T
- the type of the property that the PropertyModel represents.
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Represents a property on a class and stores various metadata such as generic parameters
- Since:
- 3.5
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> PropertyModelBuilder
<T> builder()
Deprecated.Create a newPropertyModelBuilder
boolean
Deprecated.getCodec()
Deprecated.getName()
Deprecated.Deprecated.Deprecated.org.bson.codecs.pojo.TypeData
<T> Deprecated.Deprecated.int
hashCode()
Deprecated.boolean
Deprecated.Property is readable.boolean
Deprecated.Property is writable.boolean
shouldSerialize
(T value) Deprecated.Returns true if the value should be serialized.toString()
Deprecated.Deprecated.
-
Method Details
-
builder
Deprecated.Create a newPropertyModelBuilder
- Type Parameters:
T
- the type of the property- Returns:
- the builder
-
getName
Deprecated.- Returns:
- the property name for the model
-
getWriteName
Deprecated.- Returns:
- the name of the property to use as the key when deserializing from BSON
-
getReadName
Deprecated.- Returns:
- the name of the property to use as the key when serializing into BSON
-
isWritable
public boolean isWritable()Deprecated.Property is writable.- Returns:
- true if can be deserialized from BSON
-
isReadable
public boolean isReadable()Deprecated.Property is readable.- Returns:
- true if can be serialized to BSON
-
getTypeData
Deprecated.- Returns:
- the type data for the property
-
getCodec
Deprecated.- Returns:
- the custom codec to use if set or null
-
shouldSerialize
Deprecated.Returns true if the value should be serialized.- Parameters:
value
- the value to check- Returns:
- true if the value should be serialized.
-
getPropertyAccessor
Deprecated.- Returns:
- the property accessor
-
useDiscriminator
Deprecated.- Returns:
- true or false if a discriminator should be used when serializing or null if not set
-
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-