Enum Access

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AUTO
      Access setting which means that visibility rules are to be used to automatically determine read- and/or write-access of this property.
      READ_ONLY
      Access setting that means that the property may only be read for serialization, but not written (set) during deserialization.
      READ_WRITE
      Access setting that means that the property will be accessed for both serialization (writing out values as external representation) and deserialization (reading values from external representation), regardless of visibility rules.
      WRITE_ONLY
      Access setting that means that the property may only be written (set) for deserialization, but will not be read (get) on serialization, that is, the value of the property is not included in serialization.
    • Enum Constant Detail

      • AUTO

        public static final Access AUTO
        Access setting which means that visibility rules are to be used to automatically determine read- and/or write-access of this property.
      • READ_ONLY

        public static final Access READ_ONLY
        Access setting that means that the property may only be read for serialization, but not written (set) during deserialization.
      • WRITE_ONLY

        public static final Access WRITE_ONLY
        Access setting that means that the property may only be written (set) for deserialization, but will not be read (get) on serialization, that is, the value of the property is not included in serialization.
      • READ_WRITE

        public static final Access READ_WRITE
        Access setting that means that the property will be accessed for both serialization (writing out values as external representation) and deserialization (reading values from external representation), regardless of visibility rules.
    • Method Detail

      • values

        public static Access[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Access c : Access.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Access valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • findValue

        public static Access findValue​(String type)