|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.service.nds.NdsString | +--com.novell.service.nds.NdsTelephoneNumber
Provides access to values of the Telephone Number attribute. It is used for attributes whose values are telephone numbers. The rules for matching telephone numbers are identical to those for the Case Exact String attribute syntax except that all space and hyphen (-) characters are skipped during the comparison. Two telephone numbers match for equality when their lengths and corresponding characters, including case, are identical. In matching attributes that conform to this syntax, NDS omits those spaces that are not significant (leading spaces, trailing spaces, and multiple consecutive internal spaces). NDS stores insignificant spaces with the attribute value.
Matching Rules: Equality and Substrings
NdsSyntaxId
Constructor Summary | |
NdsTelephoneNumber(java.lang.String value)
Constructs an NdsTelephoneNumber object based on the specified value parameter. |
Method Summary | |
boolean |
approximate(java.lang.Object anObject)
Compares two Objects using the approximate matching rule. |
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. |
int |
getNdsSyntaxId()
Returns the int that represents the NDS syntax ID. |
java.lang.String |
getTelephoneNumber()
Returns the telephone number stored as a String 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.NdsString |
getName,
stringValue,
toString |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public NdsTelephoneNumber(java.lang.String value)
value
- The telephone number to be stored as a String value.Method Detail |
public int compareTo(java.lang.Object anObject) throws java.lang.Exception
anObject
- The reference NDS Object (string) 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 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 getTelephoneNumber()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |