home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / ldapjdk.jar / netscape / ldap / client / JDAPAVA.class (.txt) next >
Encoding:
Java Class File  |  1999-04-13  |  1.2 KB  |  40 lines

  1. package netscape.ldap.client;
  2.  
  3. import netscape.ldap.ber.stream.BERConstruct;
  4. import netscape.ldap.ber.stream.BERElement;
  5. import netscape.ldap.ber.stream.BEROctetString;
  6. import netscape.ldap.ber.stream.BERSequence;
  7.  
  8. public class JDAPAVA {
  9.    protected String m_type;
  10.    protected String m_val;
  11.  
  12.    public JDAPAVA(String var1, String var2) {
  13.       this.m_type = var1;
  14.       this.m_val = var2;
  15.    }
  16.  
  17.    public String getType() {
  18.       return this.m_type;
  19.    }
  20.  
  21.    public String getValue() {
  22.       return this.m_val;
  23.    }
  24.  
  25.    public BERElement getBERElement() {
  26.       BERSequence var1 = new BERSequence();
  27.       ((BERConstruct)var1).addElement(new BEROctetString(this.m_type));
  28.       ((BERConstruct)var1).addElement(JDAPFilterOpers.getOctetString(this.m_val));
  29.       return var1;
  30.    }
  31.  
  32.    public String getParamString() {
  33.       return "{type=" + this.m_type + ", value=" + this.m_val + "}";
  34.    }
  35.  
  36.    public String toString() {
  37.       return "JDAPAVA " + this.getParamString();
  38.    }
  39. }
  40.