- String, primitive and object value variable support.
- Formatting object values into strings.
- Iterative object and nested iterative object support.
- Conditional support.
- Ability to call other Java methods that return boolean.
- Basic math and expression support.
- HTML external source support.
Файл шаблона get-entity-by-uri-query.xml:
<query>
<select>
<field>*</field>
</select>
<from>
<schema>{entityUri.entityType.schemaCode}</schema>
</from>
<where>
<in>
<field>INSTANCE_ID</field>
<value>{entityUri.schemaLocalId}</value>
</in>
</where>
</query>
public interface GetEntityByUriQueryTemplate extends XTemplates{
GetEntityByUriQueryTemplate INSTANCE = GWT.create(GetEntityByUriQueryTemplate.class);
@XTemplate(source="get-entity-by-uri-query.xml")
SafeHtml getQueryXml(EntityUri entityUri);
}
String queryXml=GetEntityByUriQueryTemplate.INSTANCE.getQueryXml(entityUri).asString())