|
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.LDAPDITStructureRuleSchema
Represents the definition of a specific DIT (Directory Information Tree) structure rule in the directory schema.
The LDAPDITStructureRuleSchema class represents the definition of a DIT Structure Rule. It is used to discover or modify which object classes a particular object class may be subordinate to in the DIT.
Field Summary |
Fields inherited from class com.novell.ldap.LDAPSchemaElement |
description, hashQualifier, names, obsolete, oid, qualifier |
Constructor Summary | |
LDAPDITStructureRuleSchema()
This constructor was added to support default Serialization |
|
LDAPDITStructureRuleSchema(java.lang.String raw)
Constructs a DIT structure rule from the raw string value returned from a schema query for dITStructureRules. |
|
LDAPDITStructureRuleSchema(java.lang.String[] names,
int ruleID,
java.lang.String description,
boolean obsolete,
java.lang.String nameForm,
java.lang.String[] superiorIDs)
Constructs a DIT structure rule for adding to or deleting from the schema. |
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 class. |
java.lang.String |
getNameForm()
Returns the NameForm that this structure rule controls. |
int |
getRuleID()
Returns the rule ID for this structure rule. |
java.lang.String[] |
getSuperiors()
Returns a list of all structure rules that are superior to this structure rule. |
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 LDAPDITStructureRuleSchema()
public LDAPDITStructureRuleSchema(java.lang.String[] names, int ruleID, java.lang.String description, boolean obsolete, java.lang.String nameForm, java.lang.String[] superiorIDs)
names
- The names of the structure rule.
ruleID
- The unique identifier of the structure rule. NOTE:
this is an integer, not a dotted numerical
identifier. Structure rules aren't identified
by OID.
description
- An optional description of the structure rule.
obsolete
- True if the structure rule is obsolete.
nameForm
- Either the identifier or name of a name form.
This is used to indirectly refer to the object
class that this structure rule applies to.
superiorIDs
- A list of superior structure rules - specified
by their integer ID. The object class
specified by this structure rule (via the
nameForm parameter) may only be subordinate in
the DIT to object classes of those represented
by the structure rules here; it may be null.public LDAPDITStructureRuleSchema(java.lang.String raw)
raw
- The raw string value returned from a schema
query for dITStructureRules.Method Detail |
public int getRuleID()
The getRuleID method returns an integer rather than a dotted decimal OID. Objects of this class do not have an OID, thus getID can return null.
public java.lang.String getNameForm()
You can get the actual object class that this structure rule controls by calling the getNameForm.getObjectClass method.
public java.lang.String[] getSuperiors()
To resolve to an object class, you need to first resolve the superior ID to another structure rule, then call the getNameForm.getObjectClass method on that structure rule.
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 |