Interface TypeProfileFactory.MemberPolicy

  • Enclosing class:
    TypeProfileFactory

    public static interface TypeProfileFactory.MemberPolicy
    An interface for figuring out whether to ignore certain fields or methods on an object that a profile is being generated for (if they are already going to pass testing for includable fields).
    • Method Detail

      • isIgnored

        boolean isIgnored​(Field field)
        Checks if a field is ignored by the profile generator.
        Parameters:
        field - the field to test.
        Returns:
        true if so, false if not.
      • isIgnored

        boolean isIgnored​(Method method)
        Checks if a method is ignored by the profile generator.
        Parameters:
        method - the method to test.
        Returns:
        true if so, false if not.
      • getAlias

        String getAlias​(Field field)
        Gets an alias name for the provided field. This is used for mapping this field to another name, usually for type/object conversions or the like.
        Parameters:
        field - the field to use.
        Returns:
        the name to use, or null for no alias.
      • getAlias

        String getAlias​(Method method)
        Gets an alias name for the provided method. This is used for mapping this method to another name, usually for type/object conversions or the like.
        Parameters:
        method - the method to use.
        Returns:
        the name to use, or null for no alias.