|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.service.nds.NdsInterval
Provides access to values of the Interval attribute. It is used for attributes whose values represent an interval of time in number of seconds. Attributes using this syntax can set size limits. The attributes for two intervals match for equality if they are the same. The comparison for ordering uses signed integer rules.
Matching Rules: Equality and Ordering
NdsSyntaxId
Constructor Summary | |
NdsInterval(long value)
Constructs an NdsInterval object based on the specified value parameter. |
Method Summary | |
boolean |
approximate(java.lang.Object anObject)
Compares two Objects using the approximate matching rule. |
byte |
byteValue()
Returns the value of this NDS object as a byte. |
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. |
double |
doubleValue()
Returns the value of this NDS object as a double. |
boolean |
equals(java.lang.Object anObject)
Compares two Objects for equality. |
float |
floatValue()
Returns the value of this NDS object as a float. |
long |
getInterval()
Returns the Interval stored as a long value in the NDS attribute. |
int |
getNdsSyntaxId()
Returns the int that represents the NDS syntax ID. |
int |
intValue()
Returns the value of this NDS object as an int. |
long |
longValue()
Returns the value of this NDS object as a long. |
short |
shortValue()
Returns the value of this NDS object as a short. |
boolean |
supportsMatchingRules(int matchingRules)
Checks to see if this object supports the specified matching rules. |
java.lang.String |
toString()
Generates a string representation of the object. |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public NdsInterval(long value)
value
- The time interval in seconds to be stored as a
Long value.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 intValue()
public long longValue()
public float floatValue()
public double doubleValue()
public byte byteValue()
public short shortValue()
public boolean approximate(java.lang.Object anObject) throws java.lang.Exception
public int getNdsSyntaxId()
public boolean supportsMatchingRules(int matchingRules)
matchingRules
- The set of matching rules to check.public java.lang.Object clone()
public java.lang.String toString()
public long getInterval()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |