org.apache.myfaces.view.facelets.impl
Class SectionUniqueIdCounter
java.lang.Object
org.apache.myfaces.view.facelets.impl.SectionUniqueIdCounter
public class SectionUniqueIdCounter
- extends Object
Hierarchical counter to generate unique ids.
- Author:
- Leonardo Uribe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SectionUniqueIdCounter
public SectionUniqueIdCounter()
SectionUniqueIdCounter
public SectionUniqueIdCounter(String prefix)
SectionUniqueIdCounter
public SectionUniqueIdCounter(String prefix,
String[] cache)
SectionUniqueIdCounter
public SectionUniqueIdCounter(String prefix,
int radix)
generateUniqueIdCache
public 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.
- Parameters:
prefix
- count
-
- Returns:
startUniqueIdSection
public String startUniqueIdSection()
startUniqueIdSection
public String startUniqueIdSection(String base)
generateUniqueId
public String generateUniqueId()
generateUniqueId
public void generateUniqueId(StringBuilder builderToAdd)
incrementUniqueId
public void incrementUniqueId()
endUniqueIdSection
public void endUniqueIdSection()
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.