|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.ldap.LDAPAttribute
com.novell.ldap.LDAPSchemaElement
com.novell.ldap.LDAPSyntaxSchema
public class LDAPSyntaxSchema
Represents a syntax definition in the directory schema.
The LDAPSyntaxSchema class represents the definition of a syntax. It is used to discover the known set of syntaxes in effect for the subschema.
Although this extends LDAPSchemaElement, it does not use the name or obsolete members. Therefore, calls to the getName method always return null and to the isObsolete method always returns false. There is also no matching getSyntaxNames method in LDAPSchema. Note also that adding and removing syntaxes is not typically a supported feature of LDAP servers.
Field Summary |
---|
Fields inherited from class com.novell.ldap.LDAPSchemaElement |
---|
description, hashQualifier, names, obsolete, oid, qualifier |
Constructor Summary | |
---|---|
LDAPSyntaxSchema()
This constructor was added to support default Serialization |
|
LDAPSyntaxSchema(java.lang.String raw)
Constructs a syntax from the raw string value returned on a schema query for LDAPSyntaxes. |
|
LDAPSyntaxSchema(java.lang.String oid,
java.lang.String description)
Constructs a syntax 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. |
private static LDAPXMLHandler |
getTopXMLHandler(java.lang.String tagname,
LDAPXMLHandler parenthandler)
|
(package private) static LDAPXMLHandler |
getXMLHandler(java.lang.String tagname,
LDAPXMLHandler parenthandler)
This method return the LDAPHandler which handles the XML (DSML) tags for this 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, newLine, readExternal, removeValue, setValue, size, writeDSML, writeExternal |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.io.Externalizable |
---|
readExternal, writeExternal |
Constructor Detail |
---|
public LDAPSyntaxSchema()
public LDAPSyntaxSchema(java.lang.String raw)
raw
- The raw string value returned from a schema
query for ldapSyntaxes.public LDAPSyntaxSchema(java.lang.String oid, java.lang.String description)
Adding and removing syntaxes is not typically a supported feature of LDAP servers. Novell eDirectory does not allow syntaxes to be added or removed.
oid
- The unique object identifier of the syntax - in
dotted numerical format.description
- An optional description of the syntax.Method Detail |
---|
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.private static LDAPXMLHandler getTopXMLHandler(java.lang.String tagname, LDAPXMLHandler parenthandler)
static LDAPXMLHandler getXMLHandler(java.lang.String tagname, LDAPXMLHandler parenthandler)
tagname
- Name of the Root tag used to represent this class.parenthandler
- Parent LDAPXMLHandler for this tag.
|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |