Interface PropertyNamingStrategy
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface PropertyNamingStrategy
Determines the field/property/member name of a member in an object.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static PropertyNamingStrategy
createDefaultStrategy()
Creates a default strategy that first checks forjsonName
then falls back to the member name.static PropertyNamingStrategy
createMemberNameStrategy()
Creates a naming strategy that just uses the member name as-is.java.lang.String
toPropertyName(Shape containingShape, MemberShape member, JsonSchemaConfig config)
Determine the member name of the member.
-
-
-
Method Detail
-
toPropertyName
java.lang.String toPropertyName(Shape containingShape, MemberShape member, JsonSchemaConfig config)
Determine the member name of the member.- Parameters:
containingShape
- Shape that contains the member.member
- Member shape to compute the member name of.config
- Config to use.- Returns:
- Returns the computed member name.
-
createMemberNameStrategy
static PropertyNamingStrategy createMemberNameStrategy()
Creates a naming strategy that just uses the member name as-is.- Returns:
- Returns the created strategy.
-
createDefaultStrategy
static PropertyNamingStrategy createDefaultStrategy()
Creates a default strategy that first checks forjsonName
then falls back to the member name.- Returns:
- Returns the created strategy.
-
-