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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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)
Loads the value onto the object graph.void
visitValueNames(java.util.function.Consumer<ValueName> visitor, java.lang.String namePrefix, java.util.List<StatelessValueLoader> visistedLoaders)
Traverses theValueName
instances.
-
-
-
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.- 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(java.util.function.Consumer<ValueName> visitor, java.lang.String namePrefix, java.util.List<StatelessValueLoader> visistedLoaders)
Traverses theValueName
instances.- Parameters:
visitor
- Visits theValueName
instances.namePrefix
- Prefix for name ofValueName
.visistedLoaders
- Tracks already visitedStatelessValueLoader
instances. This avoids infinite loops in recursiveValueName
instances.
-
-