public class ConfigurationOptions extends Object
ConfigurationLoader
sModifier and Type | Method and Description |
---|---|
boolean |
acceptsType(Class<?> type)
Return whether objects of the provided type are accepted as values for nodes with this as their options object.
|
static ConfigurationOptions |
defaults()
Create a new options object with defaults set
|
boolean |
equals(Object o) |
String |
getHeader()
Get the header used for this configuration
|
MapFactory |
getMapFactory()
Get the key comparator currently being used for this configuration
|
ObjectMapperFactory |
getObjectMapperFactory()
Get the current object mapper factory that is most appropriate to this configuration.
|
TypeSerializerCollection |
getSerializers() |
int |
hashCode() |
ConfigurationOptions |
setAcceptedTypes(Set<Class<?>> acceptedTypes)
Set types that will be accepted as native values for this configuration
|
ConfigurationOptions |
setHeader(String header)
Set the header that will be written to a file if
|
ConfigurationOptions |
setMapFactory(MapFactory factory)
Return a new options object with the provided option set.
|
ConfigurationOptions |
setObjectMapperFactory(ObjectMapperFactory factory)
Set the factory to use to produce object mapper instances for this configuration
|
ConfigurationOptions |
setSerializers(TypeSerializerCollection serializers)
Set the collection of TypeSerializers to be used for lookups
|
ConfigurationOptions |
setShouldCopyDefaults(boolean shouldCopyDefaults)
Set whether defaults should be set when used.
|
boolean |
shouldCopyDefaults()
Return whether or not default parameters provided to
ConfigurationNode getter methods should be set to the node when used. |
public static ConfigurationOptions defaults()
public MapFactory getMapFactory()
public ConfigurationOptions setMapFactory(MapFactory factory)
factory
- The new factory to use to create a mappublic String getHeader()
public ConfigurationOptions setHeader(String header)
header
- The new header to use for the configurationpublic TypeSerializerCollection getSerializers()
public ConfigurationOptions setSerializers(TypeSerializerCollection serializers)
serializers
- The serializers to usepublic ObjectMapperFactory getObjectMapperFactory()
public ConfigurationOptions setObjectMapperFactory(ObjectMapperFactory factory)
factory
- The factory to use to produce object mapper instances. Must not be nullpublic boolean acceptsType(Class<?> type)
type
- The type to checkpublic ConfigurationOptions setAcceptedTypes(Set<Class<?>> acceptedTypes)
acceptedTypes
- The types that will be accepted to a call to ConfigurationNode.setValue(Object)
public boolean shouldCopyDefaults()
ConfigurationNode
getter methods should be set to the node when used.public ConfigurationOptions setShouldCopyDefaults(boolean shouldCopyDefaults)
shouldCopyDefaults
- whether to copy defaultsfor information on what this method does
Copyright © 2014–2017. All rights reserved.