|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.ldap.LDAPAttribute
com.novell.ldap.LDAPSchemaElement
com.novell.ldap.LDAPObjectClassSchema
The schema definition of an object class in a directory server.
The LDAPObjectClassSchema class represents the definition of an object class. It is used to query the syntax of an object class.
LDAPSchemaElement
,
LDAPSchema
,
Serialized FormField Summary | |
static int |
ABSTRACT
This class definition defines an abstract schema class. |
static int |
AUXILIARY
This class definition defines an auxiliary schema class. |
static int |
STRUCTURAL
This class definition defines a structural schema class. |
Fields inherited from class com.novell.ldap.LDAPSchemaElement |
description, hashQualifier, names, obsolete, oid, qualifier |
Constructor Summary | |
LDAPObjectClassSchema()
This constructor was added to support default Serialization |
|
LDAPObjectClassSchema(java.lang.String raw)
Constructs an object class definition from the raw string value returned from a directory query for "objectClasses". |
|
LDAPObjectClassSchema(java.lang.String[] names,
java.lang.String oid,
java.lang.String[] superiors,
java.lang.String description,
java.lang.String[] required,
java.lang.String[] optional,
int type,
boolean obsolete)
Constructs an object class definition for adding to or deleting from a directory's 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[] |
getOptionalAttributes()
Returns a list of optional attributes but not required of an entry with this object class. |
java.lang.String[] |
getRequiredAttributes()
Returns a list of attributes required for an entry with this object class. |
java.lang.String[] |
getSuperiors()
Returns the object classes from which this one derives. |
int |
getType()
Returns the type of object class. |
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 |
Field Detail |
public static final int ABSTRACT
This is equivalent to setting the Novell eDirectory effective class flag to true.
public static final int STRUCTURAL
This is equivalent to setting the Novell eDirectory effective class flag to true.
public static final int AUXILIARY
Constructor Detail |
public LDAPObjectClassSchema()
public LDAPObjectClassSchema(java.lang.String[] names, java.lang.String oid, java.lang.String[] superiors, java.lang.String description, java.lang.String[] required, java.lang.String[] optional, int type, boolean obsolete)
names
- Name(s) of the object class.
oid
- Object Identifer of the object class - in
dotted-decimal format.
description
- Optional description of the object class.
superiors
- The object classes from which this one derives.
required
- A list of attributes required
for an entry with this object class.
optional
- A list of attributes acceptable but not required
for an entry with this object class.
type
- One of ABSTRACT, AUXILIARY, or STRUCTURAL. These
constants are defined in LDAPObjectClassSchema.
obsolete
- true if this object is obsoletepublic LDAPObjectClassSchema(java.lang.String raw)
raw
- The raw string value returned from a directory
query for "objectClasses".Method Detail |
public java.lang.String[] getSuperiors()
public java.lang.String[] getRequiredAttributes()
public java.lang.String[] getOptionalAttributes()
public int getType()
The getType method returns one of the following constants defined in LDAPObjectClassSchema:
See the LDAPSchemaElement.getQualifier method for information on obtaining the X-NDS flags.
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 All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |