Class SectionUniqueIdCounter
java.lang.Object
org.apache.myfaces.view.facelets.impl.SectionUniqueIdCounter
Hierarchical counter to generate unique ids.
- Author:
- Leonardo Uribe
- 
Constructor SummaryConstructorsConstructorDescriptionSectionUniqueIdCounter(String prefix) SectionUniqueIdCounter(String prefix, int radix) SectionUniqueIdCounter(String prefix, String[] cache) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidendUniqueIdSection(String base) voidgenerateUniqueId(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.voidstartUniqueIdSection(String base) 
- 
Constructor Details- 
SectionUniqueIdCounterpublic SectionUniqueIdCounter()
- 
SectionUniqueIdCounter
- 
SectionUniqueIdCounter
- 
SectionUniqueIdCounter
 
- 
- 
Method Details- 
generateUniqueIdCacheCreates 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
- 
incrementUniqueIdpublic void incrementUniqueId()
- 
endUniqueIdSectionpublic void endUniqueIdSection()
- 
endUniqueIdSection
 
-