Class VelocityCompoundAccess
java.lang.Object
net.ssehub.easy.instantiation.velocity.VelocityContextItem
net.ssehub.easy.instantiation.velocity.VelocityCompoundAccess
Context which allows retrieval of nested values of a compound via
getByName(<slot name>).- Author:
- El-Sharkawy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVelocityCompoundAccess(String variableName, Object cmpValue) Sole constructor for this class. -
Method Summary
Modifier and TypeMethodDescription(package private) voidAdds a nested value of the compound.Returns the desired member value of the compound.Returns the desired member value of the compound.Returns the desired member value of the compound.Methods inherited from class net.ssehub.easy.instantiation.velocity.VelocityContextItem
getName, getValue, toString
-
Field Details
-
nestedValues
-
-
Constructor Details
-
VelocityCompoundAccess
Sole constructor for this class.- Parameters:
variableName- The name of the compound.cmpValue- The compound value of the compound.
-
-
Method Details
-
addValue
Adds a nested value of the compound.- Parameters:
nestedName- The slot name of the compound.value- The value, as it shall be accessible via velocity
-
getByName
Returns the desired member value of the compound.- Parameters:
slotName- The name of the desired slot.- Returns:
- The value or null if the specified slot does not exist.
-
byName
Returns the desired member value of the compound.- Parameters:
slotName- The name of the desired slot.- Returns:
- The value or null if the specified slot does not exist.
-
value
Returns the desired member value of the compound.- Parameters:
slotName- The name of the desired slot.- Returns:
- The value or null if the specified slot does not exist.
-