Object
, the type definition is added before the object.OdinObject
with the given value to this arrayOdinObject
with the given name and value to this nodeOdinArray
to this arrayOdinArray
with the given name to this nodeOdinElement
to this array.OdinElement
with the given name to this nodeOdinElement
to the specified position.OdinElement
with the given name to this node at the specified indexOdinNode
to this arrayOdinNode
with the given name to this nodeOdinObject
with the given value to the specified position.OdinObject
with the given name and value to this node at the specified indexObjectType.getField(String)
or all other field getter and
TypeField.getType()
AnyType
associated to the given type, if the object class is not the same than type class, like implementation,
the type definition is added before the object.TypeBuilder
.ObjectType
.RuntimeException
.LocalDate
format.LocalDateTime
format.LocalTime
format.ZonedDateTime
was converted to String.OdinReader.read()
OdinReader.readTyped(Type)
OdinElement
present at the given index.OdinElement
defined with this nameObjectType.getGenericArgument(int)
ObjectType.getGenericArguments()
IllegalAccessException
.AnyType.getType()
class, this method does not return field of super classOdin.setFieldFilter(Predicate)
ObjectType.getAdapterArguments()
or this method.ObjectType.getAdapterArgument(int)
ObjectType.getAdapterArguments()
or this method.ObjectType.getAdapterArguments()
AnyType.getType()
except for generic types using ParameterizedType
or any other reflect generic type.AnyType.getType()
return Class<List> and this method return ParameterizedType
'List<String>'
method.OdinElement
present at the given index.OdinReader
.RuntimeException
occur while reading a field value.Class.getGenericSuperclass()
Odin
instance, except generic types like parameterized type or generic array type, a new odin instance is
created for each call to this method.Class.forName(String)
.OdinObject
defined with this name.RuntimeException
occur while writing a field value.OdinWriter.compressSubObjects()
to reset format.OdinObject
containing the given value.OdinElement
defined with the given name.ObjectType
, if false, this type can be a primitive or an array.OdinFieldReader.listenTo(Object, Consumer)
.OdinFieldReader.listen(Consumer)
.OdinFieldReader.listenTyped(AnyType, Consumer)
and use the given type.OdinFieldReader.listenTyped(Type, Consumer)
and use the given type.ObjectType.getField(String)
or all other field getter and
TypeField.getType()
TypeBuilder
.OdinInlineAdapter
, OdinObjectAdapter
or OdinImmutableAdapter
to customize the serialization of an objectObjectType
, so :Map
and the key of the map is inside values ( in a field ), you can write map as list of these values, so a map :OdinReader.readTo(Object)
instead of OdinReader.readTyped(Type)
in order to keep the same
object instance.RuntimeException
.OdinReader
using io Reader
OdinReader
using io InputStream
, the given input stream is transformed to reader with UTF-8 charsetOdinReader
using nio2 Path
, the given path is transformed to reader with UTF-8 charset.OdinReader
using io File
, the given file is transformed to reader with UTF-8 charsetOdinFieldReader
in order to set listener.OdinRowReader
in order to read row values.OdinRowReader.hasRowNext()
to test if there are remaining values in the current row.OdinReader.read()
.OdinReader.readTyped(AnyType)
and use the given type.OdinReader.readTyped(Type)
and use the given type.ObjectType.getField(String)
or all other field getter and
TypeField.getType()
TypeBuilder
.OdinObjectAdapter
is the standard adapter, in write and read process you receive the object type and object instance, you say to odin what to do with that, for example all object use
by default an OdinObjectAdapter, for each fields this adapter call writeTyped and readTyped.OdinImmutableAdapter
is used to read immutable object needing to get content passed to constructor, this adapter does not have recursivity check.OdinInlineAdapter
is used to transform an object to another object like primitive, for example this adapter is used to transform Class, Enum, UUID or Date to a simple String, this
adapter does not have recursive check.OdinObjectAdapter
is the standard adapter, in write and read process you receive the object type and object instance, you say to odin what to do with that, for example all object use
by default an OdinObjectAdapter, for each fields this adapter call writeTyped and readTyped.OdinImmutableAdapter
is used to read immutable object who need content value to be passed in constructor, this adapter does not have recursivity check.OdinInlineAdapter
is used to transform an object to another object like primitive, for example this adapter is used to transform Class, Enum, UUID or Date to a simple String.OdinObject
containing the given value.OdinElement
defined with this name.OdinElement
present at the given index.OdinObject
with the given value.OdinArray.add(Object)
.OdinArray.addElement(OdinElement)
.IllegalAccessException
.RuntimeException
occur while reading a field value.RuntimeException
occur while writing a field value.OdinRowReader.take()
.OdinRowReader.takeTyped(AnyType)
and use the given type.OdinRowReader.takeTyped(Type)
and use the given type.ObjectType.getField(String)
or all other field getter and
TypeField.getType()
TypeBuilder
.OdinWriter.write(Object)
OdinWriter.writeTyped(Object, Type)
Type
builder.ObjectType.getField(String)
or all other field getter and
TypeField.getType()
AnyType
associated to the given type, if the object class is not the same than type class, like implementation,
the type name is added before the object.TypeBuilder
.Object
, the type definition is added before the object.OdinExtra
are write before elementsOdinExtra
are write before elementsOdinExtra
was write before this objectOdinWriter
using io Writer
OdinWriter
using io OutputStream
, the given output stream is transformed to writer with UTF-8 charsetOdinWriter
using nio2 Path
, the given path is transformed to writer with UTF-8 charset.OdinWriter
using io File
, the given file is transformed to writer with UTF-8 charset.OdinRowWriter
is write to same rowObjectType.getField(String)
or all other field getter and
TypeField.getType()
AnyType
associated to the given type, if the object class is not the same than type class, like implementation,
the type definition is added before the object.TypeBuilder
.