netscape.ldap.client

Class JDAPFilterSubString


public class JDAPFilterSubString
extends JDAPFilter

This class implements the filter substring. See RFC 1777.
 [4] SEQUENCE {
   type AttributeType,
   SEQUENCE OF CHOICE {
     initial [0] LDAPString,
     any [1] LDAPString,
     final [2] LDAPString
   }
     }
 
Version:
1.0

Constructor Summary

JDAPFilterSubString(String type)
Constructs the filter.

Method Summary

void
addAny(String s)
Adds any substring.
void
addFinal(String s)
Adds final substring.
void
addInitial(String s)
Adds initial substring.
BERElement
getBERElement()
Gets ber representation of the filter.
String
toString()
Gets string reprensetation of the filter.

Methods inherited from class netscape.ldap.client.JDAPFilter

getBERElement, getFilter, getFilterComp, getFilterItem, getFilterList, toString

Constructor Details

JDAPFilterSubString

public JDAPFilterSubString(String type)
Constructs the filter.
Parameters:
type - attribute type

Method Details

addAny

public void addAny(String s)
Adds any substring.
Parameters:
s - any substring

addFinal

public void addFinal(String s)
Adds final substring.
Parameters:
s - final substring

addInitial

public void addInitial(String s)
Adds initial substring.
Parameters:
s - initial substring

getBERElement

public BERElement getBERElement()
Gets ber representation of the filter.
Overrides:
getBERElement in interface JDAPFilter
Returns:
ber representation

toString

public String toString()
Gets string reprensetation of the filter.
Overrides:
toString in interface JDAPFilter
Returns:
string representation