Uses of Enum Class
com.norconex.commons.lang.bean.BeanMapper.Format
Packages that use BeanMapper.Format
-
Uses of BeanMapper.Format in com.norconex.commons.lang.bean
Methods in com.norconex.commons.lang.bean that return BeanMapper.FormatModifier and TypeMethodDescriptionstatic BeanMapper.FormatBeanMapper.Format.fromContent(String content) Resolve the format based on supplied content.static BeanMapper.FormatBeanMapper.Format.fromContent(String content, BeanMapper.Format defaultFormat) Resolve the format based on supplied content.static BeanMapper.FormatResolve the format based on the file extension for a given path.static BeanMapper.FormatBeanMapper.Format.fromPath(Path path, BeanMapper.Format defaultFormat) Resolve the format based on the file extension for a given path.static BeanMapper.FormatReturns the enum constant of this class with the specified name.static BeanMapper.Format[]BeanMapper.Format.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.norconex.commons.lang.bean with parameters of type BeanMapper.FormatModifier and TypeMethodDescriptionvoidBeanMapper.assertWriteRead(@NonNull Object obj, BeanMapper.Format... formats) Throws aBeanExceptionif the given object is not equal to itself after writing it to specified formats and back.static BeanMapper.FormatBeanMapper.Format.fromContent(String content, BeanMapper.Format defaultFormat) Resolve the format based on supplied content.static BeanMapper.FormatBeanMapper.Format.fromPath(Path path, BeanMapper.Format defaultFormat) Resolve the format based on the file extension for a given path.<T> TBeanMapper.read(@NonNull Class<T> type, @NonNull Reader reader, @NonNull BeanMapper.Format format) Reads an XML, JSON, or Yaml source and map it into a new object of the given type.<T> TBeanMapper.read(T object, @NonNull Reader reader, @NonNull BeanMapper.Format format) Reads an XML, JSON, or Yaml source and map it into an existing object.com.fasterxml.jackson.databind.ObjectMapperBeanMapper.toObjectMapper(BeanMapper.Format format) Gets a JacksonObjectMapperfor the given format.voidBeanMapper.write(@NonNull Object object, @NonNull Writer writer, @NonNull BeanMapper.Format format) Write the given object as XML, JSON, or Yaml.