com.vhosting.netconf.yuma
Class Date

java.lang.Object
  extended by com.vhosting.netconf.yuma.Date

public class Date
extends java.lang.Object

The Yuma Date typedef.

Author:
Giuseppe Palmeri

Constructor Summary
Date(java.lang.String date)
          Create the YUMA Date typedef.
 
Method Summary
 java.lang.String getCanonicalValue()
          Get the canonical value of the date.
 java.util.Date getValue()
          Get the date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Date

public Date(java.lang.String date)
     throws java.lang.IllegalArgumentException
Create the YUMA Date typedef.

Parameters:
date - The date in the form: YYYY-MM-DD.
Throws:
java.lang.IllegalArgumentException - Throw this exception if the date is not in a correct format.
Method Detail

getCanonicalValue

public java.lang.String getCanonicalValue()
Get the canonical value of the date.

Returns:
The canonical value of the date.

getValue

public java.util.Date getValue()
Get the date.

Returns:
The date.