org.net2map.pov.dimension.date.DateValue Class Reference

Inheritance diagram for org.net2map.pov.dimension.date.DateValue:

Inheritance graph
[legend]
Collaboration diagram for org.net2map.pov.dimension.date.DateValue:

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents a calendar date.

Author:
Philippe MOULIN

Definition at line 28 of file DateValue.java.

Public Member Functions

 DateValue ()
 Creates a new instance of Date.

 DateValue (java.util.Date paramInitializer)
void setValue (java.util.Calendar newValue)
 Changes this date's value.

void setValue (java.util.Date newValue)
void setValue (String newValue)
long toLong ()
 returns a long representing this date

String toString ()
 returns a string representation of this date

java.util.Date toDate ()
int compareTo (java.util.Date anotherDate)

Private Attributes

java.util.Calendar theDate
 Stores the date managed by this object.


Static Private Attributes

org.apache.log4j.Logger logger


Constructor & Destructor Documentation

org.net2map.pov.dimension.date.DateValue.DateValue  ) 
 

Creates a new instance of Date.

Definition at line 37 of file DateValue.java.

References org.net2map.pov.dimension.date.DateValue.logger, and org.net2map.pov.dimension.date.DateValue.theDate.

org.net2map.pov.dimension.date.DateValue.DateValue java.util.Date  paramInitializer  ) 
 

Definition at line 47 of file DateValue.java.

References org.net2map.pov.dimension.date.DateValue.logger, and org.net2map.pov.dimension.date.DateValue.theDate.


Member Function Documentation

int org.net2map.pov.dimension.date.DateValue.compareTo java.util.Date  anotherDate  ) 
 

Definition at line 123 of file DateValue.java.

References org.net2map.pov.dimension.date.DateValue.toDate().

Referenced by org.net2map.pov.dimension.date.DateSubset.isValid().

Here is the call graph for this function:

void org.net2map.pov.dimension.date.DateValue.setValue String  newValue  ) 
 

Definition at line 90 of file DateValue.java.

References org.net2map.pov.dimension.date.DateValue.theDate.

void org.net2map.pov.dimension.date.DateValue.setValue java.util.Date  newValue  ) 
 

Definition at line 86 of file DateValue.java.

References org.net2map.pov.dimension.date.DateValue.theDate.

void org.net2map.pov.dimension.date.DateValue.setValue java.util.Calendar  newValue  ) 
 

Changes this date's value.

Parameters:
newValue The new date

Definition at line 61 of file DateValue.java.

References org.net2map.pov.dimension.date.DateValue.theDate.

Referenced by org.net2map.pov.dimension.date.DateSubset.DateSubset(), org.net2map.pov.dimension.date.DateSubset.propertyChange(), org.net2map.pov.dimension.date.DateSubset.setEarliestDate(), and org.net2map.pov.dimension.date.DateSubset.setLatestDate().

java.util.Date org.net2map.pov.dimension.date.DateValue.toDate  ) 
 

Definition at line 118 of file DateValue.java.

References org.net2map.pov.dimension.date.DateValue.theDate.

Referenced by org.net2map.pov.dimension.date.DateValue.compareTo().

long org.net2map.pov.dimension.date.DateValue.toLong  )  [virtual]
 

returns a long representing this date

Returns:
the seconds count since epoch

Implements org.net2map.pov.dimension.Value.

Definition at line 99 of file DateValue.java.

References org.net2map.pov.dimension.date.DateValue.theDate.

Referenced by org.net2map.pov.dimension.date.DateSubset.getLeftmostValue(), org.net2map.pov.dimension.date.DateSubset.getRightmostValue(), org.net2map.pov.dimension.date.DateSubset.propertyChange(), and org.net2map.pov.dimension.date.DateSubset.toXml().

String org.net2map.pov.dimension.date.DateValue.toString  ) 
 

returns a string representation of this date

Returns:
A string representation of this date

Definition at line 108 of file DateValue.java.

References org.net2map.pov.dimension.date.DateValue.theDate.

Referenced by org.net2map.pov.dimension.date.DateSubset.propertyChange(), and org.net2map.pov.dimension.date.DateSubset.toString().


Member Data Documentation

org.apache.log4j.Logger org.net2map.pov.dimension.date.DateValue.logger [static, private]
 

Initial value:

 
    org.apache.log4j.Logger.getLogger(DateValue.class.getName())

Definition at line 32 of file DateValue.java.

Referenced by org.net2map.pov.dimension.date.DateValue.DateValue().

java.util.Calendar org.net2map.pov.dimension.date.DateValue.theDate [private]
 

Stores the date managed by this object.

Definition at line 35 of file DateValue.java.

Referenced by org.net2map.pov.dimension.date.DateValue.DateValue(), org.net2map.pov.dimension.date.DateValue.setValue(), org.net2map.pov.dimension.date.DateValue.toDate(), org.net2map.pov.dimension.date.DateValue.toLong(), and org.net2map.pov.dimension.date.DateValue.toString().


The documentation for this class was generated from the following file:
Accueil | Téléchargement | Manuel | Doc. technique | Sources CVS | Faq | Nous contacter
©2003 - All Rights Reserved