Package 

Interface ObjectReader

  • 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 interface ObjectReader.Property

      An 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.
      • Methods inherited from class dev.thecodewarrior.prism.base.analysis.ObjectReader

        build, close, release, start
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait