Package netscape.ldap.client
Class JDAPFilter
- java.lang.Object
-
- netscape.ldap.client.JDAPFilter
-
- Direct Known Subclasses:
JDAPFilterAVA,JDAPFilterExtensible,JDAPFilterNot,JDAPFilterPresent,JDAPFilterSet,JDAPFilterSubString
public abstract class JDAPFilter extends java.lang.ObjectThis 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
Constructors Constructor Description JDAPFilter()Constructs a empty filter.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract BERElementgetBERElement()Gets the ber representation of filter.static JDAPFiltergetFilter(java.lang.String filter)Constructs filter from filter string specified in RFC1558.static JDAPFiltergetFilterComp(java.lang.String f)Constructs the filter computation.static JDAPFiltergetFilterItem(java.lang.String item)Gets filter item.static JDAPFilter[]getFilterList(java.lang.String list)Parses a list of filtersabstract java.lang.StringtoString()Retrieves the string representation of filter.
-
-
-
Method Detail
-
getFilter
public static JDAPFilter getFilter(java.lang.String filter)
Constructs filter from filter string specified in RFC1558.- Parameters:
filter- filter string as specified in RFC1558- Returns:
- filter
-
getFilterComp
public static JDAPFilter getFilterComp(java.lang.String f)
Constructs the filter computation.- Parameters:
f- filter string within brackets- Returns:
- filter
-
getFilterList
public static JDAPFilter[] getFilterList(java.lang.String list)
Parses a list of filters- Parameters:
list- filter list (i.e. (filter)(filter)...)- Returns:
- list of filters
-
getFilterItem
public static JDAPFilter getFilterItem(java.lang.String item)
Gets filter item.- Parameters:
item- filter item string- Returns:
- filter
-
getBERElement
public abstract BERElement getBERElement()
Gets the ber representation of filter.- Returns:
- ber representation of filter
-
toString
public abstract java.lang.String toString()
Retrieves the string representation of filter.- Overrides:
toStringin classjava.lang.Object- Returns:
- string representation of filter
-
-