package javax.naming.directory; import javax.naming.Context; import javax.naming.Name; import javax.naming.NamingEnumeration; import javax.naming.NamingException; public interface DirContext extends Context { public static final int ADD_ATTRIBUTE = 1; public static final int REMOVE_ATTRIBUTE = 3; public static final int REPLACE_ATTRIBUTE = 2; void bind(String str, Object obj, Attributes attributes) throws NamingException; void bind(Name name, Object obj, Attributes attributes) throws NamingException; DirContext createSubcontext(String str, Attributes attributes) throws NamingException; DirContext createSubcontext(Name name, Attributes attributes) throws NamingException; Attributes getAttributes(String str) throws NamingException; Attributes getAttributes(String str, String[] strArr) throws NamingException; Attributes getAttributes(Name name) throws NamingException; Attributes getAttributes(Name name, String[] strArr) throws NamingException; DirContext getSchema(String str) throws NamingException; DirContext getSchema(Name name) throws NamingException; DirContext getSchemaClassDefinition(String str) throws NamingException; DirContext getSchemaClassDefinition(Name name) throws NamingException; void modifyAttributes(String str, int i, Attributes attributes) throws NamingException; void modifyAttributes(String str, ModificationItem[] modificationItemArr) throws NamingException; void modifyAttributes(Name name, int i, Attributes attributes) throws NamingException; void modifyAttributes(Name name, ModificationItem[] modificationItemArr) throws NamingException; void rebind(String str, Object obj, Attributes attributes) throws NamingException; void rebind(Name name, Object obj, Attributes attributes) throws NamingException; NamingEnumeration search(String str, String str2, SearchControls searchControls) throws NamingException; NamingEnumeration search(String str, String str2, Object[] objArr, SearchControls searchControls) throws NamingException; NamingEnumeration search(String str, Attributes attributes) throws NamingException; NamingEnumeration search(String str, Attributes attributes, String[] strArr) throws NamingException; NamingEnumeration search(Name name, String str, SearchControls searchControls) throws NamingException; NamingEnumeration search(Name name, String str, Object[] objArr, SearchControls searchControls) throws NamingException; NamingEnumeration search(Name name, Attributes attributes) throws NamingException; NamingEnumeration search(Name name, Attributes attributes, String[] strArr) throws NamingException; }