com.cc.framework.ui.model.imp
Class RecurrencePatternImp.MonthlyIterator

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.RecurrencePatternImp.AbstractRecurrenceIterator
      extended bycom.cc.framework.ui.model.imp.RecurrencePatternImp.MonthlyIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
RecurrencePatternImp

public static class RecurrencePatternImp.MonthlyIterator
extends RecurrencePatternImp.AbstractRecurrenceIterator

Monthly iterator

Author:
Harald Schulz

Field Summary
 
Fields inherited from class com.cc.framework.ui.model.imp.RecurrencePatternImp.AbstractRecurrenceIterator
current, endDate, pattern
 
Constructor Summary
RecurrencePatternImp.MonthlyIterator(RecurrencePattern pattern)
          Constructor
 
Method Summary
protected  java.util.Calendar doCalcEndDate()
          Calculates the pattern end date
protected  boolean doMatch(java.util.Calendar date)
          Checks if this iterator matches a certain date
 
Methods inherited from class com.cc.framework.ui.model.imp.RecurrencePatternImp.AbstractRecurrenceIterator
calcEndDate, checkDayInstance, hasNext, match, next, remove, reset, selectNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecurrencePatternImp.MonthlyIterator

public RecurrencePatternImp.MonthlyIterator(RecurrencePattern pattern)
Constructor

Parameters:
pattern - the recurrence pattern
Method Detail

doMatch

protected boolean doMatch(java.util.Calendar date)
Description copied from class: RecurrencePatternImp.AbstractRecurrenceIterator
Checks if this iterator matches a certain date

Specified by:
doMatch in class RecurrencePatternImp.AbstractRecurrenceIterator
Parameters:
date - The date to check
Returns:
returns true if this recurrence pattern is relevant for the given date
See Also:
RecurrencePatternImp.AbstractRecurrenceIterator.doMatch(java.util.Calendar)

doCalcEndDate

protected java.util.Calendar doCalcEndDate()
Description copied from class: RecurrencePatternImp.AbstractRecurrenceIterator
Calculates the pattern end date

Overrides:
doCalcEndDate in class RecurrencePatternImp.AbstractRecurrenceIterator
Returns:
the end date or null when the pattern has no end date
See Also:
RecurrencePatternImp.AbstractRecurrenceIterator.doCalcEndDate()


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.