Annotation Interface SerializableField


@Documented @Retention(RUNTIME) public @interface SerializableField

Annotation for fields during serialization to ask for further traversal

Including this annotation makes the serializer attempt to serialize the field instead of just saving its toString value.

The flags provide a way to switch between the toString and full serialization in case of multiple file types

The list attribute allows you to serialize the objects contained within collections such as lists or hash sets

The map attribute allows you to serialize the objects within hash maps if they are the values (e.g. HashMap<string, MyObject>)

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    boolean
     
    boolean
     
  • Element Details

    • flag

      String flag
      Returns:
      the flag in which this field is serializable
      Default:
      "ALL"
    • list

      boolean list
      Returns:
      whether or not this field is a list
      Default:
      false
    • map

      boolean map
      Returns:
      whether or not this field is a map
      Default:
      false