Package com.blackrook.json.struct
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 Summary
Modifier and TypeMethodDescriptionGets an alias name for the provided field.Gets an alias name for the provided method.boolean
Checks if a field is ignored by the profile generator.boolean
Checks if a method is ignored by the profile generator.
-
Method Details
-
isIgnored
Checks if a field is ignored by the profile generator.- Parameters:
field
- the field to test.- Returns:
- true if so, false if not.
-
isIgnored
Checks if a method is ignored by the profile generator.- Parameters:
method
- the method to test.- Returns:
- true if so, false if not.
-
getAlias
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
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.
-