Package net.officefloor.web.value.load
Interface StatelessValueLoader
- All Known Implementing Classes:
RootStatelessValueLoader
public interface StatelessValueLoader
Loads a value onto the Object graph.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidloadValue(Object object, String name, int nameIndex, String value, HttpValueLocation location, Map<PropertyKey, Object> state) Loads the value onto the object graph.voidvisitValueNames(Consumer<ValueName> visitor, String namePrefix, List<StatelessValueLoader> visistedLoaders) Traverses theValueNameinstances.
-
Method Details
-
loadValue
void loadValue(Object object, String name, int nameIndex, String value, HttpValueLocation location, Map<PropertyKey, Object> state) throws HttpExceptionLoads the value onto the object graph.- Parameters:
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.- Throws:
HttpException- If fails to load the value.
-
visitValueNames
void visitValueNames(Consumer<ValueName> visitor, String namePrefix, List<StatelessValueLoader> visistedLoaders) Traverses theValueNameinstances.- Parameters:
visitor- Visits theValueNameinstances.namePrefix- Prefix for name ofValueName.visistedLoaders- Tracks already visitedStatelessValueLoaderinstances. This avoids infinite loops in recursiveValueNameinstances.
-