Package com.networknt.schema.walk
Class WalkConfig
- java.lang.Object
-
- com.networknt.schema.walk.WalkConfig
-
public class WalkConfig extends Object
Configuration used when walking a schema.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWalkConfig.BuilderBuilder forWalkConfig.static classWalkConfig.NoOpWalkHandlerWalkHandlerthat performs no operations but indicates that it should walk.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WalkConfig.Builderbuilder()Creates a new builder forWalkConfig.static WalkConfig.Builderbuilder(WalkConfig config)Creates a new builder forWalkConfigand copies the configuration.ApplyDefaultsStrategygetApplyDefaultsStrategy()Gets the strategy for applying defaults.static WalkConfiggetInstance()WalkHandlergetItemWalkHandler()Gets the item walk handler.WalkHandlergetKeywordWalkHandler()Gets the keyword walk handler.WalkHandlergetPropertyWalkHandler()Gets the property walk handler.
-
-
-
Method Detail
-
getInstance
public static WalkConfig getInstance()
-
getApplyDefaultsStrategy
public ApplyDefaultsStrategy getApplyDefaultsStrategy()
Gets the strategy for applying defaults.- Returns:
- the strategy for applying defaults
-
getPropertyWalkHandler
public WalkHandler getPropertyWalkHandler()
Gets the property walk handler.- Returns:
- the property walk handler
-
getItemWalkHandler
public WalkHandler getItemWalkHandler()
Gets the item walk handler.- Returns:
- the item walk handler
-
getKeywordWalkHandler
public WalkHandler getKeywordWalkHandler()
Gets the keyword walk handler.- Returns:
- the keyword walk handler
-
builder
public static WalkConfig.Builder builder()
Creates a new builder forWalkConfig.- Returns:
- the builder
-
builder
public static WalkConfig.Builder builder(WalkConfig config)
Creates a new builder forWalkConfigand copies the configuration.- Parameters:
config- the configuration to copy- Returns:
- the builder
-
-