org.apache.cocoon.forms.samples.bindings
Class DateWrapper

java.lang.Object
  extended by org.apache.cocoon.forms.samples.bindings.DateWrapper

public class DateWrapper
extends Object

DateWrapper is a specific sample test-class to demo the aggregate-binding. This class must loook quite awkward, but is specially designed to look similar to the XML structure used in the same sample. That is also why all field types here are simply kept to String This will cause the binding-conversion to be applied.


Constructor Summary
DateWrapper(String day, String month, String year)
           
 
Method Summary
 String getCombined()
           
 String getDay()
           
 String getMonth()
           
 Map getSplit()
           
 String getYear()
           
 void setCombined(String fullDate)
           
 void setDay(String day)
           
 void setMonth(String month)
           
 void setYear(String year)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateWrapper

public DateWrapper(String day,
                   String month,
                   String year)
Method Detail

getCombined

public String getCombined()

setCombined

public void setCombined(String fullDate)

getSplit

public Map getSplit()

getDay

public String getDay()
Returns:
Returns the day.

setDay

public void setDay(String day)
Parameters:
day - The day to set.

getMonth

public String getMonth()
Returns:
Returns the month.

setMonth

public void setMonth(String month)
Parameters:
month - The month to set.

getYear

public String getYear()
Returns:
Returns the year.

setYear

public void setYear(String year)
Parameters:
year - The year to set.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.