netscape.ldap.client

Class JDAPFilter

Known Direct Subclasses:
JDAPFilterAVA, JDAPFilterExtensible, JDAPFilterNot, JDAPFilterPresent, JDAPFilterSet, JDAPFilterSubString

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
   }
 
Version:
1.0

Constructor Summary

JDAPFilter()
Constructs a empty filter.

Method Summary

abstract BERElement
getBERElement()
Gets the ber representation of filter.
static JDAPFilter
getFilter(String filter)
Constructs filter from filter string specified in RFC1558.
static JDAPFilter
getFilterComp(String f)
Constructs the filter computation.
static JDAPFilter
getFilterItem(String item)
Gets filter item.
static JDAPFilter[]
getFilterList(String list)
Parses a list of filters
abstract String
toString()
Retrieves the string representation of filter.

Constructor Details

JDAPFilter

public JDAPFilter()
Constructs a empty filter.

Method Details

getBERElement

public abstract BERElement getBERElement()
Gets the ber representation of filter.
Returns:
ber representation of filter

getFilter

public static JDAPFilter getFilter(String filter)
Constructs filter from filter string specified in RFC1558.
  ::= '('  ')'
  ::=  |  |  | 
  ::= '&' 
  ::= '|' 
  ::= '!' 
  ::=  |  
  ::=  |  | 
  ::=   
  ::=  |  |  | 
  ::= '='
  ::= '~='
  ::= '>='
  ::= '<='
  ::=  '=*'
  ::=  '='   
  ::= NULL | 
  ::= '*' 
  ::= NULL |  '*' 
  ::= NULL | 
 
Parameters:
filter - filter string as specified in RFC1558
Returns:
filter

getFilterComp

public static JDAPFilter getFilterComp(String f)
Constructs the filter computation.
Parameters:
f - filter string within brackets
Returns:
filter

getFilterItem

public static JDAPFilter getFilterItem(String item)
Gets filter item.
Parameters:
item - filter item string
Returns:
filter

getFilterList

public static JDAPFilter[] getFilterList(String list)
Parses a list of filters
Parameters:
list - filter list (i.e. (filter)(filter)...)
Returns:
list of filters

toString

public abstract String toString()
Retrieves the string representation of filter.
Returns:
string representation of filter