Interface IdentitySerializationInfo<T>
- All Known Implementing Classes:
AbstractIdentitySerializationInfo,PropertyIdentitySerializationInfo
public interface IdentitySerializationInfo<T>
Contains identity informations for serialization process.
- Version:
- $Id: $
- Author:
- Nicolas Morel
-
Method Summary
Modifier and Type Method Description ObjectIdSerializer<?>getObjectId(T bean, JsonSerializationContext ctx)getObjectIdjava.lang.StringgetPropertyName()getPropertyNamebooleanisAlwaysAsId()isAlwaysAsIdbooleanisProperty()isProperty
-
Method Details
-
isAlwaysAsId
boolean isAlwaysAsId()isAlwaysAsId
- Returns:
- true if we should always serialize the bean as an identifier even if it has not been seralized yet
-
isProperty
boolean isProperty()isProperty
- Returns:
- true if the identifier is also a property of the bean
-
getPropertyName
java.lang.String getPropertyName()getPropertyName
- Returns:
- name of the identifier property
-
getObjectId
getObjectId
- Parameters:
bean- a T object.ctx- aJsonSerializationContextobject.- Returns:
- a
ObjectIdSerializerobject.
-