Package com.fauna.query.template
Class FaunaTemplate
- java.lang.Object
-
- com.fauna.query.template.FaunaTemplate
-
- All Implemented Interfaces:
java.lang.Iterable<FaunaTemplate.TemplatePart>
public class FaunaTemplate extends java.lang.Object implements java.lang.Iterable<FaunaTemplate.TemplatePart>
Represents a template for constructing Fauna queries with placeholders for variable interpolation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FaunaTemplate.TemplatePart
Represents a part of the template, which can either be a literal string or a variable placeholder.
-
Constructor Summary
Constructors Constructor Description FaunaTemplate(java.lang.String template)
Constructs a new FaunaTemplate with the given string template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<FaunaTemplate.TemplatePart>
iterator()
Creates an iterator over the parts of the template, distinguishing between literals and variable placeholders.
-
-
-
Method Detail
-
iterator
public java.util.Iterator<FaunaTemplate.TemplatePart> iterator()
Creates an iterator over the parts of the template, distinguishing between literals and variable placeholders.- Specified by:
iterator
in interfacejava.lang.Iterable<FaunaTemplate.TemplatePart>
- Returns:
- an Iterator that traverses the template parts.
-
-