Class JsonLdPropertyAccessResolver

java.lang.Object
cz.cvut.kbss.jsonld.common.JsonLdPropertyAccessResolver
All Implemented Interfaces:
PropertyAccessResolver

public class JsonLdPropertyAccessResolver extends Object implements PropertyAccessResolver
Resolves property access based on the JsonLdProperty annotation value.
  • Constructor Details

    • JsonLdPropertyAccessResolver

      public JsonLdPropertyAccessResolver()
  • Method Details

    • isReadable

      public boolean isReadable(Field field, Class<?> objectClass)
      Description copied from interface: PropertyAccessResolver
      Resolves whether value of the specified field is readable for serialization.
      Specified by:
      isReadable in interface PropertyAccessResolver
      Parameters:
      field - Field to check
      objectClass - Type of the object being serialized
      Returns:
      Whether the field is readable
    • isWriteable

      public boolean isWriteable(Field field)
      Description copied from interface: PropertyAccessResolver
      Resolves whether the specified field is writeable by deserialization.
      Specified by:
      isWriteable in interface PropertyAccessResolver
      Parameters:
      field - Field to check
      Returns:
      Whether the field is writeable