org.opencms.xml.content
Class CmsNumberSuffixNameSequence

java.lang.Object
  extended by org.opencms.xml.content.CmsNumberSuffixNameSequence
All Implemented Interfaces:
Iterator<String>

public class CmsNumberSuffixNameSequence
extends Object
implements Iterator<String>

Name generator which appends a numeric suffix to a given base string.

Since:
8.0.0

Constructor Summary
CmsNumberSuffixNameSequence(String str)
          Creates a new instance.
 
Method Summary
 boolean hasNext()
           
 String next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsNumberSuffixNameSequence

public CmsNumberSuffixNameSequence(String str)
Creates a new instance.

Parameters:
str - the base name which should be used for generating the names
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<String>
See Also:
Iterator.hasNext()

next

public String next()
Specified by:
next in interface Iterator<String>
See Also:
Iterator.next()

remove

public void remove()
Specified by:
remove in interface Iterator<String>
See Also:
Iterator.remove()