KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > calipso > reportgenerator > common > ResolveWeek


1 package com.calipso.reportgenerator.common;
2
3 import java.util.Calendar JavaDoc;
4
5 /**
6  * Define el comportamiento para poder averiguar el valor de la semana
7  */

8 public class ResolveWeek extends DateExpressionResolver {
9   public ResolveWeek() {
10     super();
11   }
12
13   /**
14    * Devuelve la semana de la fecha previamente seteada
15    * @return String
16    */

17   public String JavaDoc doGetValue() {
18     return String.valueOf(getDateFormatter().getCalendar().get(Calendar.WEEK_OF_MONTH));
19   }
20 }
21
Popular Tags