Interface StatelessValueLoader

  • All Known Implementing Classes:

    public interface StatelessValueLoader
    Loads a value onto the Object graph.
    Daniel Sagenschneider
    • Method Detail

      • loadValue

        void loadValue​(java.lang.Object object,
                       java.lang.String name,
                       int nameIndex,
                       java.lang.String value,
                       HttpValueLocation location,
                       java.util.Map<PropertyKey,​java.lang.Object> state)
                throws HttpException
        Loads the value onto the object graph.
        object - Root object of the graph to have the value loaded.
        name - Full property name.
        nameIndex - Index into property name to identify particular property name for next stringed property to load.
        value - Property value.
        location - HttpValueLocation.
        state - State of loading values to the Object graph.
        HttpException - If fails to load the value.
      • visitValueNames

        void visitValueNames​(java.util.function.Consumer<ValueName> visitor,
                             java.lang.String namePrefix,
                             java.util.List<StatelessValueLoader> visistedLoaders)
        Traverses the ValueName instances.
        visitor - Visits the ValueName instances.
        namePrefix - Prefix for name of ValueName.
        visistedLoaders - Tracks already visited StatelessValueLoader instances. This avoids infinite loops in recursive ValueName instances.