public final class IdentifierSequences extends Object
Objects of this class are kept at ITemplateContext
in order to provide templates
with a way to create unique id attribute values during template processing.
Constructor and Description |
---|
IdentifierSequences() |
Modifier and Type | Method and Description |
---|---|
Integer |
getAndIncrementIDSeq(String id)
Returns a new index (ID count) for a specific
value of the id attribute, and increments
the count.
|
Integer |
getNextIDSeq(String id)
Returns the index (ID count) for a specific
value of the id attribute without incrementing
the count.
|
Integer |
getPreviousIDSeq(String id)
Returns the last index (ID count) returned for a specific
value of the id attribute (without incrementing
the count).
|
public Integer getAndIncrementIDSeq(String id)
Returns a new index (ID count) for a specific value of the id attribute, and increments the count.
id
- the ID for which the count will be computedpublic Integer getNextIDSeq(String id)
Returns the index (ID count) for a specific value of the id attribute without incrementing the count.
id
- the ID for which the count will be retrievedCopyright © 2017 The THYMELEAF team. All rights reserved.