C# 클래스 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.
상속: LdapAttribute
파일 보기 프로젝트 열기: EventStore/csharp-ldap 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
hashQualifier System.Collections.Hashtable
oid System.String
qualifier System.String[]

공개 메소드들

메소드 설명
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-").

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
InitBlock ( ) : void

메소드 상세

LdapSchemaElement() 보호된 메소드

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" ///
리턴 System

ToString() 공개 메소드

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
리턴 System.String

addValue() 공개 메소드

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
리턴 void

formatString() 보호된 추상적인 메소드

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
리턴 System.String

getQualifier() 공개 메소드

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. /// ///
리턴 System.String[]

removeValue() 공개 메소드

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
리턴 void

setQualifier() 공개 메소드

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. ///
리턴 void

프로퍼티 상세

hashQualifier 보호되어 있는 프로퍼티

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

oid 보호되어 있는 프로퍼티

The OID for the schema element.
protected String,System oid
리턴 System.String

qualifier 보호되어 있는 프로퍼티

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
리턴 System.String[]