class DirContextAdapter implements DirContextOperations {

	@Override
	public String getNameInNamespace() {
        if(base.size() == 0) {
            return dn.toString();
        }

        try {
            LdapName result = (LdapName) dn.clone();
            result.addAll(0, base);
            return result.toString();
        } catch (InvalidNameException e) {
            throw new org.springframework.ldap.InvalidNameException(e);
        }
	}

	public  DirContextAdapter();
	public  DirContextAdapter(String dnString);
	public  DirContextAdapter(Name dn);
	public  DirContextAdapter(Attributes attrs, Name dn);
	public  DirContextAdapter(Attributes attrs, Name dn, Name base);
	public  DirContextAdapter(Attributes attrs, Name dn, Name base,
			String referralUrl);
	protected  DirContextAdapter(DirContextAdapter master);

}