|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.ldap.LDAPAttribute com.novell.ldap.LDAPSchemaElement com.novell.ldap.LDAPMatchingRuleSchema
The schematic definition of a particular matching rule in a particular Directory Server.
The LDAPMatchingRuleSchema class represents the definition of a mathcing rule. It is used to query matching rule syntax, and to add or delete a matching rule definition in a directory.
Novell eDirectory does not currently allow matching rules to be added or deleted from the schema.
LDAPAttributeSchema
,
LDAPSchemaElement
,
LDAPSchema
,
Serialized FormField Summary |
Fields inherited from class com.novell.ldap.LDAPSchemaElement |
description, hashQualifier, names, obsolete, oid, qualifier |
Constructor Summary | |
LDAPMatchingRuleSchema()
This constructor was added to support default Serialization |
|
LDAPMatchingRuleSchema(java.lang.String[] names,
java.lang.String oid,
java.lang.String description,
java.lang.String[] attributes,
boolean obsolete,
java.lang.String syntaxString)
Constructs a matching rule definition for adding to or deleting from a directory. |
|
LDAPMatchingRuleSchema(java.lang.String rawMatchingRule,
java.lang.String rawMatchingRuleUse)
Constructs a matching rule definition from the raw string values returned from a schema query for "matchingRule" and for "matchingRuleUse" for the same rule. |
Method Summary | |
protected java.lang.String |
formatString()
Returns a string in a format suitable for directly adding to a directory, as a value of the particular schema element attribute. |
java.lang.String[] |
getAttributes()
Returns the OIDs of the attributes to which this rule applies. |
java.lang.String |
getSyntaxString()
Returns the OID of the syntax that this matching rule is valid for. |
static java.lang.Object |
readDSML(java.io.InputStream input)
This method is used to deserialize the DSML encoded representation of this class. |
protected void |
setDeserializedValues(java.io.BufferedInputStream istream)
|
protected void |
writeValue(java.lang.StringBuffer buff)
|
protected void |
writeValue(java.io.Writer out)
|
Methods inherited from class com.novell.ldap.LDAPSchemaElement |
addValue, addValue, getDescription, getID, getNames, getQualifier, getQualifierNames, isObsolete, removeValue, removeValue, setQualifier, toString |
Methods inherited from class com.novell.ldap.LDAPAttribute |
addBase64Value, addBase64Value, addBase64Value, addURLValue, addURLValue, addValue, clone, compareTo, getBaseName, getBaseName, getByteValue, getByteValueArray, getByteValues, getLangSubtype, getName, getStringValue, getStringValueArray, getStringValues, getSubtypes, getSubtypes, hasSubtype, hasSubtypes, readExternal, removeValue, setValue, size, writeDSML, writeExternal |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LDAPMatchingRuleSchema()
public LDAPMatchingRuleSchema(java.lang.String[] names, java.lang.String oid, java.lang.String description, java.lang.String[] attributes, boolean obsolete, java.lang.String syntaxString)
names
- The names of the attribute.
oid
- Object Identifier of the attribute - in
dotted-decimal format.
description
- Optional description of the attribute.
attributes
- The OIDs of attributes to which the rule applies.
This parameter may be null. All attributes added to
this array must use the same syntax.
obsolete
- true if this matching rule is obsolete.
syntaxString
- The unique object identifer of the syntax of the
attribute, in dotted numerical format.
public LDAPMatchingRuleSchema(java.lang.String rawMatchingRule, java.lang.String rawMatchingRuleUse)
rawMatchingRule
- The raw string value returned on a directory
query for "matchingRule".
rawMatchingRuleUse
- The raw string value returned on a directory
query for "matchingRuleUse".Method Detail |
public java.lang.String[] getAttributes()
public java.lang.String getSyntaxString()
protected java.lang.String formatString()
formatString
in class LDAPSchemaElement
protected void setDeserializedValues(java.io.BufferedInputStream istream) throws java.io.IOException
setDeserializedValues
in class LDAPAttribute
java.io.IOException
protected void writeValue(java.io.Writer out) throws java.io.IOException
writeValue
in class LDAPAttribute
java.io.IOException
protected void writeValue(java.lang.StringBuffer buff)
writeValue
in class LDAPAttribute
public static java.lang.Object readDSML(java.io.InputStream input) throws java.io.IOException
input
- InputStream for the DSML formatted data.
java.io.IOException
- when serialization fails.
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |