Other name(s) : $keyValues, $dataValues
( documentation for Telosys generator version 4.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
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
Since : 3.0.0
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) |
.toFormattedJSON() : String
Returns a JSON string containing all the attributes with their literal values. |
.toFormattedJSON(List attributes) : String
Returns a JSON string containing the given attributes with their literal values. |
.toJSON() : String
Returns a JSON string containing all the attributes with their literal values. |
.toJSON(List attributes) : String
Returns a JSON string containing the given attributes with their literal values. |
.toJSON(List attributes, String separator) : String
Returns a string containing the literal values in JSON format for the given list of attributes. |
.toJSON(List attributes, String separator1, String separator2) : String
Returns a string containing the literal values in JSON format for the given list of attributes. |
.toJSON(String separator) : String
Returns a string containing ALL the literal values in JSON format. |
.toJSON(String separator1, String separator2) : String
Returns a string containing ALL the literal values in JSON format. |
.toURI() : String
Returns a string containing all the values in URI format (with '/' separator) |
.toURI(List attributes) : String
Returns a string containing the given attributes values in URI format (with '/' separator) |