Enum PApplicationException._Field

    • Method Detail

      • values

        public static PApplicationException._Field[] 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 (PApplicationException._Field c : PApplicationException._Field.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PApplicationException._Field valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getArgumentsType

        @Nullable
        public PStructDescriptor getArgumentsType()
        Description copied from interface: PField
        If present, is the params type to be used for parameterizable field content, e.g. with GraphQL.
        Specified by:
        getArgumentsType in interface PField<PApplicationException>
        Returns:
        The params type, or null if not parameterizable.
      • getDefaultValue

        @Nullable
        public java.lang.Object getDefaultValue()
        Specified by:
        getDefaultValue in interface PField<PApplicationException>
        Returns:
        The default value or null if none. This should return value also where the field has an implicit default value, e.g. numerical types.
      • findById

        public static PApplicationException._Field findById​(int id)
        Parameters:
        id - Field ID
        Returns:
        The identified field or null
      • findByName

        public static PApplicationException._Field findByName​(java.lang.String name)
        Parameters:
        name - Field name
        Returns:
        The named field or null
      • findByPojoName

        public static PApplicationException._Field findByPojoName​(java.lang.String name)
        Parameters:
        name - Field POJO name
        Returns:
        The named field or null
      • fieldForId

        public static PApplicationException._Field fieldForId​(int id)
        Parameters:
        id - Field ID
        Returns:
        The identified field
        Throws:
        java.lang.IllegalArgumentException - If no such field
      • fieldForName

        public static PApplicationException._Field fieldForName​(java.lang.String name)
        Parameters:
        name - Field name
        Returns:
        The named field
        Throws:
        java.lang.IllegalArgumentException - If no such field
      • fieldForPojoName

        public static PApplicationException._Field fieldForPojoName​(java.lang.String name)
        Parameters:
        name - Field POJO name
        Returns:
        The named field
        Throws:
        java.lang.IllegalArgumentException - If no such field