com.novell.admin.ns
Class DateValue
java.lang.Object
|
+--com.novell.admin.ns.ValueComponent
|
+--com.novell.admin.ns.Value
|
+--com.novell.admin.ns.DateValue
- All Implemented Interfaces:
- java.io.Serializable
- public final class DateValue
- extends Value
Storage class for all syntaxes that use date and time.
This is an immutable class.
- See Also:
BooleanValue
,
HexValue
,
StringValue
,
LongValue
,
StreamValue
Constructor Summary |
DateValue(Syntax syntax,
java.util.Date date)
Constructor that uses a Date object. |
DateValue(Syntax syntax,
long millis)
Constructor that uses an integer. |
Method Summary |
long |
getMillis()
Returns the value as an integer. |
java.util.Date |
getValue()
Returns the value as a Date. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
DateValue
public DateValue(Syntax syntax,
java.util.Date date)
- Constructor that uses a Date object.
This constructor should only be called from date/time strategy classes and
not directly in an application.
- Parameters:
syntax
- Associated syntax for this date value.date
- The Date object.
DateValue
public DateValue(Syntax syntax,
long millis)
- Constructor that uses an integer.
This constructor should only be called from date/time strategy classes and
not directly in an application.
- Parameters:
syntax
- Associated syntax for this date value.int
- The milliseconds since Jan 1, 1970.
getValue
public java.util.Date getValue()
- Returns the value as a Date.
- Returns:
- The value as Date type.
getMillis
public long getMillis()
- Returns the value as an integer.
- Returns:
- The value as integer type.
API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated December 17 2003 1746.