Lizzy v1.1.1

christophedelory.plist
Class Date

java.lang.Object
  extended by christophedelory.plist.PlistObject
      extended by christophedelory.plist.Date

public class Date
extends PlistObject

The date primitive type. Contents should conform to a subset of ISO 8601 (in particular, YYYY '-' MM '-' DD 'T' HH ':' MM ':' SS 'Z'. Smaller units may be omitted with a loss of precision).

Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
Date()
          Builds a new and empty date.
Date(Date value)
          Builds a new date with the specified value.
 
Method Summary
 Date getValue()
          Returns the date.
 String getValueString()
          Returns the date.
 void setValue(Date value)
          Initializes the date.
 void setValueString(String value)
          Initializes the date.
 
Methods inherited from class christophedelory.plist.PlistObject
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Date

public Date()
Builds a new and empty date.


Date

public Date(Date value)
Builds a new date with the specified value.

Parameters:
value - the date value. Shall not be null.
Throws:
NullPointerException - if value is null.
Method Detail

getValueString

public String getValueString()
Returns the date.

Returns:
a date. Shall not be null.
Throws:
NullPointerException - if no date has been defined in this instance.
See Also:
setValueString(java.lang.String), getValue()

setValueString

public void setValueString(String value)
                    throws ParseException
Initializes the date.

Parameters:
value - a date. Shall not be null.
Throws:
NullPointerException - if value is null.
ParseException - if the beginning of the specified string cannot be parsed.
See Also:
getValueString(), setValue(java.util.Date)

getValue

public Date getValue()
Returns the date.

Returns:
a date. May be null if not yet initialized.
See Also:
setValue(java.util.Date), getValueString()

setValue

public void setValue(Date value)
Initializes the date.

Parameters:
value - a date. Shall not be null.
Throws:
NullPointerException - if value is null.
See Also:
getValue(), setValueString(java.lang.String)

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.