C# Class Novell.Directory.Ldap.LdapSchemaElement

The LdapSchemaElement class is the base class representing schema elements (definitions) in Ldap. An LdapSchemaElement is read-only, single-valued LdapAttribute. Therefore, it does not support the addValue and removeValue methods from LdapAttribute. This class overrides those methods and throws UnsupportedOperationException if either of those methods are invoked by an application.
Inheritance: LdapAttribute
Afficher le fichier Open project: EventStore/csharp-ldap Class Usage Examples

Protected Properties

Свойство Type Description
hashQualifier System.Collections.Hashtable
oid System.String
qualifier System.String[]

Méthodes publiques

Méthode Description
ToString ( ) : System.String

Returns a string in a format suitable for directly adding to a directory, as a value of the particular schema element.

addValue ( System value_Renamed ) : void

LdapSchemaElement is read-only and this method is over-ridden to throw an exception. @throws UnsupportedOperationException always thrown since LdapSchemaElement is read-only

getQualifier ( System name ) : System.String[]

Returns an array of all values of a specified optional or non- standard qualifier of the element. The getQualifier method may be used to access the values of vendor-specific qualifiers (which begin with "X-").

removeValue ( System value_Renamed ) : void

LdapSchemaElement is read-only and this method is over-ridden to throw an exception. @throws UnsupportedOperationException always thrown since LdapSchemaElement is read-only

setQualifier ( System name, System values ) : void

Sets the values of a specified optional or non-standard qualifier of the element. The setQualifier method is used to set the values of vendor- specific qualifiers (which begin with "X-").

Méthodes protégées

Méthode Description
LdapSchemaElement ( System attrName ) : System

Creates an LdapSchemaElement by setting the name of the LdapAttribute. Because this is the only constructor, all extended classes are expected to call this constructor. The value of the LdapAttribute must be set by the setValue method.

formatString ( ) : System.String

Implementations of formatString format a schema element into a string suitable for using in a modify (ADD) operation to the directory. toString uses this method. This method is needed because a call to setQualifier requires reconstructing the string value of the schema element.

Private Methods

Méthode Description
InitBlock ( ) : void

Method Details

LdapSchemaElement() protected méthode

Creates an LdapSchemaElement by setting the name of the LdapAttribute. Because this is the only constructor, all extended classes are expected to call this constructor. The value of the LdapAttribute must be set by the setValue method.
protected LdapSchemaElement ( System attrName ) : System
attrName System The attribute name of the schema definition. Valid /// names are one of the following: /// "attributeTypes", "objectClasses", "ldapSyntaxes", /// "nameForms", "dITContentRules", "dITStructureRules", /// "matchingRules", or "matchingRuleUse" ///
Résultat System

ToString() public méthode

Returns a string in a format suitable for directly adding to a directory, as a value of the particular schema element.
public ToString ( ) : System.String
Résultat System.String

addValue() public méthode

LdapSchemaElement is read-only and this method is over-ridden to throw an exception. @throws UnsupportedOperationException always thrown since LdapSchemaElement is read-only
public addValue ( System value_Renamed ) : void
value_Renamed System
Résultat void

formatString() protected abstract méthode

Implementations of formatString format a schema element into a string suitable for using in a modify (ADD) operation to the directory. toString uses this method. This method is needed because a call to setQualifier requires reconstructing the string value of the schema element.
protected abstract formatString ( ) : System.String
Résultat System.String

getQualifier() public méthode

Returns an array of all values of a specified optional or non- standard qualifier of the element. The getQualifier method may be used to access the values of vendor-specific qualifiers (which begin with "X-").
public getQualifier ( System name ) : System.String[]
name System The name of the qualifier, case-sensitive. /// ///
Résultat System.String[]

removeValue() public méthode

LdapSchemaElement is read-only and this method is over-ridden to throw an exception. @throws UnsupportedOperationException always thrown since LdapSchemaElement is read-only
public removeValue ( System value_Renamed ) : void
value_Renamed System
Résultat void

setQualifier() public méthode

Sets the values of a specified optional or non-standard qualifier of the element. The setQualifier method is used to set the values of vendor- specific qualifiers (which begin with "X-").
public setQualifier ( System name, System values ) : void
name System The name of the qualifier, case-sensitive. /// ///
values System The values to set for the qualifier. ///
Résultat void

Property Details

hashQualifier protected_oe property

A hash table that contains the vendor-specific qualifiers (for example, the X-NDS flags).
protected System.Collections.Hashtable hashQualifier
Résultat System.Collections.Hashtable

oid protected_oe property

The OID for the schema element.
protected String,System oid
Résultat System.String

qualifier protected_oe property

A string array of optional, or vendor-specific, qualifiers for the schema element. These optional qualifiers begin with "X-"; the Novell eDirectory specific qualifiers begin with "X-NDS".
protected String[],System qualifier
Résultat System.String[]