-
- All Implemented Interfaces:
-
dev.thecodewarrior.prism.TypeReader,java.lang.AutoCloseable
public interface ObjectReader<T extends Object, S extends Serializer<?>> implements TypeReader<T>
ObjectReader encapsulates the state necessary for reading an object from an abstract data source.
Deserializers using an ObjectReader must call setValue exactly once for every property, unless that property is marked as .
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceObjectReader.PropertyAn encapsulation of the state necessary for reading a property
-
Method Summary
Modifier and Type Method Description abstract ObjectReader.Property<S>getProperty(String name)Gets the property with the given name, or null if no such property exists. abstract List<ObjectReader.Property<S>>getProperties()The list of properties on this object in a stable order. -
-
Method Detail
-
getProperty
abstract ObjectReader.Property<S> getProperty(String name)
Gets the property with the given name, or null if no such property exists.
-
getProperties
abstract List<ObjectReader.Property<S>> getProperties()
The list of properties on this object in a stable order.
-
-
-
-