Class SerdePropertyAccess

java.lang.Object
io.micronaut.serde.util.SerdePropertyAccess

@Internal public final class SerdePropertyAccess extends Object
Utility for resolving serde property access from serde and core introspection metadata.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canDeserialize(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
    Determines whether the property can be deserialized.
    static boolean
    canDeserialize(io.micronaut.core.beans.BeanWriteProperty<?,?> beanProperty, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
    Determines whether the property can be deserialized.
    static boolean
    canSerialize(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
    Determines whether the property can be serialized.
    static boolean
    canSerialize(io.micronaut.core.beans.BeanReadProperty<?,?> beanProperty, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
    Determines whether the property can be serialized.
    static boolean
    hasRestrictedAccess(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
    Determines whether the property is restricted to only read or only write access.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • canSerialize

      public static boolean canSerialize(io.micronaut.core.beans.BeanReadProperty<?,?> beanProperty, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
      Determines whether the property can be serialized.
      Parameters:
      beanProperty - The bean read property
      annotationMetadata - The annotation metadata
      Returns:
      Whether the property can be serialized
    • canSerialize

      public static boolean canSerialize(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
      Determines whether the property can be serialized.
      Parameters:
      annotationMetadata - The annotation metadata
      Returns:
      Whether the property can be serialized
    • canDeserialize

      public static boolean canDeserialize(io.micronaut.core.beans.BeanWriteProperty<?,?> beanProperty, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
      Determines whether the property can be deserialized.
      Parameters:
      beanProperty - The bean write property
      annotationMetadata - The annotation metadata
      Returns:
      Whether the property can be deserialized
    • canDeserialize

      public static boolean canDeserialize(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
      Determines whether the property can be deserialized.
      Parameters:
      annotationMetadata - The annotation metadata
      Returns:
      Whether the property can be deserialized
    • hasRestrictedAccess

      public static boolean hasRestrictedAccess(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
      Determines whether the property is restricted to only read or only write access.
      Parameters:
      annotationMetadata - The annotation metadata
      Returns:
      Whether the property is restricted to only read or only write access