Other name(s) : $keyValues, $dataValues
Generator version : 3.1.0
This object provides a set literal values
Each literal value is associated with an attribute's name and can be assigned to this attribute
Since : 3.0.0
Example :
#set( $values = $fn.buildValues($entity.attributes, 1) )
count = $values.size()
#foreach( $attribute in $entity.attributes )
Value for attribute "${attribute.name}" = $values.getValue($attribute.name)
#end
| Attributes and methods |
.allValues : String
Returns a string containing all the literal values separated by a comma. |
.comparisonStatement(String entityVariableName, AttributeInContext attribute) : String
Returns a comparison statement between the attribute's current value and its associated literal value |
.getValue(String attributeName) : String
Returns a string containing the literal value for the given attribute's name |
.size() : int
Returns the size of the values list (the number of values) |
.toJSON() : String
Returns a string containing ALL the literal values in JSON format. |
.toJSON(List attributes) : String
Returns a string containing the literal values in JSON format for the given list of attributes. |
.toJSON(List ?, String ?) : String
|
.toJSON(List ?, String ?, String ?) : String
|
.toJSON(String ?) : String
|
.toJSON(String ?, String ?) : String
|