Package netscape.ldap.client
Class JDAPFilterSubString
java.lang.Object
netscape.ldap.client.JDAPFilter
netscape.ldap.client.JDAPFilterSubString
This class implements the filter substring.
See RFC 1777 and 2254.
[4] SEQUENCE { type AttributeType, SEQUENCE OF CHOICE { initial [0] LDAPString, any [1] LDAPString, final [2] LDAPString } } substring = attr "=" [initial] any [final] initial = value any = "*" *(value "*") final = value
- Version:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds any substring.void
Adds final substring.void
addInitial
(String s) Adds initial substring.Get any substrings.Gets ber representation of the filter.Get final substring.Get initial substring.getType()
Get attribute type.toString()
Gets string reprensetation of the filter.Methods inherited from class netscape.ldap.client.JDAPFilter
getFilter, getFilterComp, getFilterItem, getFilterList
-
Constructor Details
-
JDAPFilterSubString
Constructs the filter.- Parameters:
type
- attribute type
-
-
Method Details
-
getType
Get attribute type.- Returns:
- attribute type
-
getInitialSubstring
Get initial substring.- Returns:
- initial substring.
-
addInitial
Adds initial substring.- Parameters:
s
- initial substring
-
getAnySubstrings
Get any substrings.- Returns:
- any substrings.
-
addAny
Adds any substring.- Parameters:
s
- any substring
-
getFinalSubstring
Get final substring.- Returns:
- final substring.
-
addFinal
Adds final substring.- Parameters:
s
- final substring
-
getBERElement
Gets ber representation of the filter.- Specified by:
getBERElement
in classJDAPFilter
- Returns:
- ber representation
-
toString
Gets string reprensetation of the filter.- Specified by:
toString
in classJDAPFilter
- Returns:
- string representation
-