|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.service.nds.NdsInteger | +--com.novell.service.nds.NdsTime
Provides access to values of the Time attribute. It is used for attributes whose values represent time. A Time value consists of a whole number of seconds, where zero equals 12:00 midnight, January 1, 1970, UTC. Two Time values are compared by comparing the Integer_T values.
Matching Rules: Equality and Ordering
NdsSyntaxId
Constructor Summary | |
NdsTime(java.util.Date value)
Constructs an NdsTime object based on the specified Date value parameter. |
|
NdsTime(long value)
Constructs an NdsTime object based on the specified long value parameter. |
Method Summary | |
java.lang.Object |
clone()
Creates a new object of the same class as this object. |
int |
compareTo(java.lang.Object anObject)
Compares two objects for ordering, or compares two strings lexicographically. |
boolean |
equals(java.lang.Object anObject)
Compares two Objects for equality. |
java.util.Date |
getDate()
Returns the time Date value stored in the object data member. |
java.util.GregorianCalendar |
getGregorianCalendar()
Returns the GregorianCalendar value stored in the object data member. |
int |
getNdsSyntaxId()
Returns the int that represents the NDS syntax ID. |
long |
getTime()
Returns the time stored as a long value in the object data member. |
boolean |
supportsMatchingRules(int matchingRules)
Checks to see if this object supports the specified matching rules. |
Methods inherited from class com.novell.service.nds.NdsInteger |
approximate,
byteValue,
doubleValue,
floatValue,
getInteger,
intValue,
longValue,
shortValue,
toString |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public NdsTime(long value)
value
- The time in a whole number of seconds to be stored
as a long value.public NdsTime(java.util.Date value)
value
- The NdsTime Date value to be stored.Method Detail |
public int compareTo(java.lang.Object anObject) throws java.lang.Exception
anObject
- The reference NDS Object with which
to compare.public boolean equals(java.lang.Object anObject)
The equals method implements the most discriminating possible equivalence relation on objects; that is, for any reference values X and Y, this method returns TRUE if and only if X and Y refer to the same object (X==Y has the value TRUE).
anObject
- The reference object with which to compare.public int getNdsSyntaxId()
public boolean supportsMatchingRules(int matchingRules)
The NdsTime syntax supports the equality and ordering matching rules.
matchingRules
- The set of matching rules to check.public java.lang.Object clone()
public long getTime()
public java.util.Date getDate()
public java.util.GregorianCalendar getGregorianCalendar()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |