Class PropertyIdentityDeserializationInfo<T>
java.lang.Object
org.dominokit.jacksonapt.deser.bean.PropertyIdentityDeserializationInfo<T>
- All Implemented Interfaces:
IdentityDeserializationInfo<T>
public class PropertyIdentityDeserializationInfo<T> extends java.lang.Object implements IdentityDeserializationInfo<T>
PropertyIdentityDeserializationInfo class.
- Version:
- $Id: $
- Author:
- Nicolas Morel
-
Constructor Summary
Constructors Constructor Description PropertyIdentityDeserializationInfo(java.lang.String propertyName, java.lang.Class<?> type, java.lang.Class<?> scope)Constructor for PropertyIdentityDeserializationInfo. -
Method Summary
Modifier and Type Method Description java.lang.StringgetPropertyName()getPropertyNamebooleanisProperty()isPropertyObjectIdGenerator.IdKeynewIdKey(java.lang.Object id)newIdKeyjava.lang.ObjectreadId(JsonReader reader, JsonDeserializationContext ctx)Reads the id and returns it.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PropertyIdentityDeserializationInfo
public PropertyIdentityDeserializationInfo(java.lang.String propertyName, java.lang.Class<?> type, java.lang.Class<?> scope)Constructor for PropertyIdentityDeserializationInfo.
- Parameters:
propertyName- aStringobject.type- aClassobject.scope- aClassobject.
-
-
Method Details
-
getPropertyName
public final java.lang.String getPropertyName()getPropertyName
- Specified by:
getPropertyNamein interfaceIdentityDeserializationInfo<T>- Returns:
- name of the identifier property
-
isProperty
public final boolean isProperty()isProperty
- Specified by:
isPropertyin interfaceIdentityDeserializationInfo<T>- Returns:
- true if the identifier is also a property of the bean
-
newIdKey
newIdKey
- Specified by:
newIdKeyin interfaceIdentityDeserializationInfo<T>- Parameters:
id- Identifier- Returns:
- a new
ObjectIdGenerator.IdKey
-
readId
Reads the id and returns it.- Specified by:
readIdin interfaceIdentityDeserializationInfo<T>- Parameters:
reader- readerctx- context of the deserialization process- Returns:
- the identifier
-