Package cz.cvut.kbss.jsonld.common
Class JsonLdPropertyAccessResolver
java.lang.Object
cz.cvut.kbss.jsonld.common.JsonLdPropertyAccessResolver
- All Implemented Interfaces:
PropertyAccessResolver
Resolves property access based on the
JsonLdProperty annotation value.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReadable(Field field, Class<?> objectClass) Resolves whether value of the specified field is readable for serialization.booleanisWriteable(Field field) Resolves whether the specified field is writeable by deserialization.
-
Constructor Details
-
JsonLdPropertyAccessResolver
public JsonLdPropertyAccessResolver()
-
-
Method Details
-
isReadable
Description copied from interface:PropertyAccessResolverResolves whether value of the specified field is readable for serialization.- Specified by:
isReadablein interfacePropertyAccessResolver- Parameters:
field- Field to checkobjectClass- Type of the object being serialized- Returns:
- Whether the field is readable
-
isWriteable
Description copied from interface:PropertyAccessResolverResolves whether the specified field is writeable by deserialization.- Specified by:
isWriteablein interfacePropertyAccessResolver- Parameters:
field- Field to check- Returns:
- Whether the field is writeable
-