Enum ParserTokens.PROJECTIONARGS

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ParserTokens.PROJECTIONARGS>
    Enclosing class:
    ParserTokens

    public static enum ParserTokens.PROJECTIONARGS
    extends java.lang.Enum<ParserTokens.PROJECTIONARGS>
    specific fields: nbunits, dua, ...
    $fields : [ #nbunits:1, #dua:1, #all:1... ]

    #all:1 means all, while #all:0 means none

    • Method Detail

      • values

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

        public static ParserTokens.PROJECTIONARGS 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
      • isValid

        public static boolean isValid​(java.lang.String token)
        Used in projection for getObject
        Parameters:
        token - the token to valid
        Returns:
        True if this token is valid, even starting with a "_"
      • parse

        public static ParserTokens.PROJECTIONARGS parse​(java.lang.String name)
        Parse the given name
        Parameters:
        name - name of the field to parse
        Returns:
        the corresponding PROJECTIONARGS
        Throws:
        java.lang.IllegalArgumentException - if not found
      • notAllowedOnSetExternal

        public static boolean notAllowedOnSetExternal​(java.lang.String name)
        This function check the field name for know if it's allowed to inserting or updating the given field from external. This check is done by the API-internal by the VarNameAdapter.
        Parameters:
        name - field name
        Returns:
        True if the field is not allowed, false
      • notAllowedOnSet

        public static boolean notAllowedOnSet​(java.lang.String name)
        This function check the field name for know if it's allowed to inserting or updating the given field from external. This check is done by the API-internal by the VarNameAdapter.
        Parameters:
        name - field name
        Returns:
        True if this value is not allowed on set (insert, update)
      • exactToken

        public final java.lang.String exactToken()
        Returns:
        the exact token