netscape.ldap.client
Class JDAPFilter
java.lang.Objectnetscape.ldap.client.JDAPFilter
public abstract class JDAPFilter
extends java.lang.Object
This class implements the filter.
Filter ::= CHOICE {
and [0] SET OF Filter,
or [1] SET OF Filter,
not [2] Filter,
equalityMatch [3] AttributeValueAssertion,
substrings [4] SubstringFilter,
greaterOrEqual [5] AttributeValueAssertion,
lessOrEqual [6] AttributeValueAssertion,
present [7] AttributeType,
approxMatch [8] AttributeValueAssertion
}
JDAPFilter
public JDAPFilter()
Constructs a empty filter.
getBERElement
public abstract BERElement getBERElement()
Gets the ber representation of filter.
- ber representation of filter
getFilter
public static JDAPFilter getFilter(String filter)
Constructs filter from filter string specified in RFC1558.
::= '(' ')'
::= | | | -
::= '&'
::= '|'
::= '!'
::= |
- ::= | |
::=
::= | | |
::= '='
::= '~='
::= '>='
::= '<='
::= '=*'
::= '='
::= NULL |
::= '*'
::= NULL | '*'
::= NULL |
filter - filter string as specified in RFC1558
getFilterComp
public static JDAPFilter getFilterComp(String f)
Constructs the filter computation.
f - filter string within brackets
getFilterItem
public static JDAPFilter getFilterItem(String item)
Gets filter item.
item - filter item string
getFilterList
public static JDAPFilter[] getFilterList(String list)
Parses a list of filters
list - filter list (i.e. (filter)(filter)...)
toString
public abstract String toString()
Retrieves the string representation of filter.
- string representation of filter