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.
Determines the field/property/member name of a member in an object.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyNamingStrategyCreates a default strategy that first checks forjsonNamethen falls back to the member name.static PropertyNamingStrategyCreates a naming strategy that just uses the member name as-is.toPropertyName(Shape containingShape, MemberShape member, JsonSchemaConfig config) Determine the member name of the member.
-
Method Details
-
toPropertyName
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
Creates a naming strategy that just uses the member name as-is.- Returns:
- Returns the created strategy.
-
createDefaultStrategy
Creates a default strategy that first checks forjsonNamethen falls back to the member name.- Returns:
- Returns the created strategy.
-