|
|||||||||
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.NdsCaseExactString
Provides access to attribute values of the CaseExactString syntax. It is used for attributes whose values are strings for which the case (upper or lower) is significant when performing comparisons.
Two Case Exact Strings match for equality when they are the same length and their corresponding characters 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. Attributes using the Case Exact String syntax can set size limits.
Matching Rules: Equality and Substrings
NdsSyntaxId
Constructor Summary | |
NdsCaseExactString(java.lang.String value)
Constructs an NdsCaseExactString 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. |
java.lang.String |
getCaseExactString()
Returns the String value stored in the object data member. |
int |
getNdsSyntaxId()
Returns the int that represents the NDS syntax ID. |
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 NdsCaseExactString(java.lang.String value)
value
- The String value to be stored.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)
The NdsCaseExactString syntax supports only the equality and substrings matching rules.
matchingRules
- The set of matching rules to check.public java.lang.Object clone()
public java.lang.String getCaseExactString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |