public class EnumNamingStrategyFactory extends Object
Modifier and Type | Method and Description |
---|---|
static EnumNamingStrategy |
createEnumNamingStrategyInstance(Object namingDef,
boolean canOverrideAccessModifiers)
Factory method for creating an instance of
EnumNamingStrategy from a provided namingDef . |
public static EnumNamingStrategy createEnumNamingStrategyInstance(Object namingDef, boolean canOverrideAccessModifiers)
EnumNamingStrategy
from a provided namingDef
.namingDef
- subclass of EnumNamingStrategy
to initialize an instance of.canOverrideAccessModifiers
- whether to override access modifiers when instantiating the naming strategy.EnumNamingStrategy
if namingDef
is a subclass of EnumNamingStrategy
,
null
if namingDef
is null
,
and an instance of EnumNamingStrategy
if namingDef
already is one.IllegalArgumentException
- if namingDef
is not an instance of Class
or
not a subclass of EnumNamingStrategy
.Copyright © 2008–2023 FasterXML. All rights reserved.