Class SectionUniqueIdCounter
java.lang.Object
org.apache.myfaces.view.facelets.impl.SectionUniqueIdCounter
Hierarchical counter to generate unique ids.
- Author:
- Leonardo Uribe
-
Constructor Summary
ConstructorsConstructorDescriptionSectionUniqueIdCounter
(String prefix) SectionUniqueIdCounter
(String prefix, int radix) SectionUniqueIdCounter
(String prefix, String[] cache) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
endUniqueIdSection
(String base) void
generateUniqueId
(StringBuilder builderToAdd) static String[]
generateUniqueIdCache
(String prefix, int count) Creates an array of the generated unique ids for an specified prefix, than can be used later to prevent calculate the same String over and over.void
startUniqueIdSection
(String base)
-
Constructor Details
-
SectionUniqueIdCounter
public SectionUniqueIdCounter() -
SectionUniqueIdCounter
-
SectionUniqueIdCounter
-
SectionUniqueIdCounter
-
-
Method Details
-
generateUniqueIdCache
Creates an array of the generated unique ids for an specified prefix, than can be used later to prevent calculate the same String over and over.- Parameters:
prefix
-count
-- Returns:
-
startUniqueIdSection
-
startUniqueIdSection
-
generateUniqueId
-
generateUniqueId
-
incrementUniqueId
public void incrementUniqueId() -
endUniqueIdSection
public void endUniqueIdSection() -
endUniqueIdSection
-