Novell.Directory.Ldap.LdapSchema.addElement C# (CSharp) Méthode

addElement() private méthode

Adds the schema definition to the idList and nameList HashMaps. This method is used by the methods fetchSchema and add. Note that the nameTable has all keys cast to Upper-case. This is so we can have a case-insensitive HashMap. The getXXX (String key) methods will also cast to uppercase.
private addElement ( int schemaType, LdapSchemaElement element ) : void
schemaType int Type of schema definition, use one of the final /// integers defined at the top of this class: /// ATTRIBUTE, OBJECT_CLASS, SYNTAX, NAME_FORM, /// DITCONTENT, DITSTRUCTURE, MATCHING, MATCHING_USE /// ///
element LdapSchemaElement Schema element definition. ///
Résultat void
        private void addElement(int schemaType, LdapSchemaElement element)
        {
            SupportClass.PutElement(idTable[schemaType], element.ID, element);
            System.String[] names = element.Names;
            for (int i = 0; i < names.Length; i++)
            {
                SupportClass.PutElement(nameTable[schemaType], names[i].ToUpper(), element);
            }
            return ;
        }