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 TypeMethodDescriptionboolean
isReadable
(Field field, Class<?> objectClass) Resolves whether value of the specified field is readable for serialization.boolean
isWriteable
(Field field) Resolves whether the specified field is writeable by deserialization.
-
Constructor Details
-
JsonLdPropertyAccessResolver
public JsonLdPropertyAccessResolver()
-
-
Method Details
-
isReadable
Description copied from interface:PropertyAccessResolver
Resolves whether value of the specified field is readable for serialization.- Specified by:
isReadable
in interfacePropertyAccessResolver
- Parameters:
field
- Field to checkobjectClass
- Type of the object being serialized- Returns:
- Whether the field is readable
-
isWriteable
Description copied from interface:PropertyAccessResolver
Resolves whether the specified field is writeable by deserialization.- Specified by:
isWriteable
in interfacePropertyAccessResolver
- Parameters:
field
- Field to check- Returns:
- Whether the field is writeable
-