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(since="2022-10-31") public final class PropertyModel<T> extends java.lang.ObjectDeprecated.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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> PropertyModelBuilder<T>builder()Deprecated.Create a newPropertyModelBuilderbooleanequals(java.lang.Object o)Deprecated.Codec<T>getCodec()Deprecated.java.lang.StringgetName()Deprecated.PropertyAccessor<T>getPropertyAccessor()Deprecated.java.lang.StringgetReadName()Deprecated.org.bson.codecs.pojo.TypeData<T>getTypeData()Deprecated.java.lang.StringgetWriteName()Deprecated.inthashCode()Deprecated.booleanisReadable()Deprecated.Property is readable.booleanisWritable()Deprecated.Property is writable.booleanshouldSerialize(T value)Deprecated.Returns true if the value should be serialized.java.lang.StringtoString()Deprecated.java.lang.BooleanuseDiscriminator()Deprecated.
-
-
-
Method Detail
-
builder
public static <T> PropertyModelBuilder<T> builder()
Deprecated.Create a newPropertyModelBuilder- Type Parameters:
T- the type of the property- Returns:
- the builder
-
getName
public java.lang.String getName()
Deprecated.- Returns:
- the property name for the model
-
getWriteName
public java.lang.String getWriteName()
Deprecated.- Returns:
- the name of the property to use as the key when deserializing from BSON
-
getReadName
public java.lang.String 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
public org.bson.codecs.pojo.TypeData<T> getTypeData()
Deprecated.- Returns:
- the type data for the property
-
shouldSerialize
public boolean shouldSerialize(T value)
Deprecated.Returns true if the value should be serialized.- Parameters:
value- the value to check- Returns:
- true if the value should be serialized.
-
getPropertyAccessor
public PropertyAccessor<T> getPropertyAccessor()
Deprecated.- Returns:
- the property accessor
-
useDiscriminator
public java.lang.Boolean useDiscriminator()
Deprecated.- Returns:
- true or false if a discriminator should be used when serializing or null if not set
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
-