|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dsmltools.DSMLLDAPConverter
Constructor Summary | |
DSMLLDAPConverter()
|
Method Summary | |
(package private) static org.w3c.dom.Element |
attrTypeToNode(netscape.ldap.LDAPAttributeSchema xiAttrSchema,
org.w3c.dom.Document xiOwnerDoc)
This function converts an LDAPAttributeSchema into the equivalent Document representation. |
(package private) static org.w3c.dom.Element |
entryToNode(netscape.ldap.LDAPEntry xiEntry,
org.w3c.dom.Document xiOwnerDoc,
netscape.ldap.LDAPSchema xiSchema)
This function converts an LDAPEntry into the equivalent Document representation. |
(package private) static java.lang.String |
getSubText(org.w3c.dom.Node xiNode)
This method gets the value of the first sub node of the passed in node that is a Text node. |
(package private) static netscape.ldap.LDAPEntry |
nodeToEntry(org.w3c.dom.Node xiNode)
This function converts a Node representation of a directory entry into an LDAPEntry one. |
(package private) static netscape.ldap.LDAPSchema |
nodeToSchema(org.w3c.dom.Node xiSchemaNode)
This method converts a Document representation of a schema, the contents of a <directory-schema> tag, to an LDAPSchema object. |
(package private) static org.w3c.dom.Element |
objectclassToNode(netscape.ldap.LDAPObjectClassSchema xiOCSchema,
org.w3c.dom.Document xiOwnerDoc)
This function converts an LDAPObjectClassSchema into the equivalent Document representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DSMLLDAPConverter()
Method Detail |
static netscape.ldap.LDAPSchema nodeToSchema(org.w3c.dom.Node xiSchemaNode) throws DSMLRefException
xiSchemaNode
- The <directory-schema> node to convert
DSMLRefException
- Thrown if, in the course of validation, we encounter
a reference to an external schema. This makes
continuing with validation impossible, as we might
remove valid data.static netscape.ldap.LDAPEntry nodeToEntry(org.w3c.dom.Node xiNode)
|<oc-value>----"top" |<objectclass>----|<oc-value>----"person" | |<oc-value>----"organization" | ... | [xiNode] | (name) |<value>----"fred@flintstone.com" <entry ----|<attr ----|<value>----"fflintstone@quarry.com" dn=""> | name=""> | |<attr> |<value>----"fred@somepub.com" |<attr> ... ...
xiNode
- The node representing the <entry> tag in the above diagram
static org.w3c.dom.Element attrTypeToNode(netscape.ldap.LDAPAttributeSchema xiAttrSchema, org.w3c.dom.Document xiOwnerDoc)
|<name>----"cn" |<object-identifier>----"2.5.4.3" <attribute-type -------| [and, optionally:] id="", superior=""> |<description>----"Common name" ...
xiAttrSchema
- The LDAPAttributeSchema to convertxiOwnerDoc
- The owner of the new node (nodes must have an owner)
static org.w3c.dom.Element objectclassToNode(netscape.ldap.LDAPObjectClassSchema xiOCSchema, org.w3c.dom.Document xiOwnerDoc)
|<name>----"person" <class -------|<description>----"A person" id="", |<object-identifier>----"2.5.6.6" superior="", |<attribute ---- type=""> ref="", required=""/>
xiOCSchema
- The LDAPObjectClassSchema to convertxiOwnerDoc
- The owner of the new node (nodes must have an owner)
static org.w3c.dom.Element entryToNode(netscape.ldap.LDAPEntry xiEntry, org.w3c.dom.Document xiOwnerDoc, netscape.ldap.LDAPSchema xiSchema)
|<oc-value>----"top" |<objectclass>---|<oc-value>----"person" <entry ----| ... dn=""> | |<attr -----|<value>----"peterr@home.com" name=""> |<value>----"peter@dsml.org" ...We need the schema to check whether a given attribute has String or binary data.
xiEntry
- The LDAPEntry to convertxiOwnerDoc
- The owner of the new node (nodes must have an owner)xiSchema
- The schema relating to these entries
static java.lang.String getSubText(org.w3c.dom.Node xiNode)
<wibble>Fred</wibble>
. Given the
<wibble>
Node, this function returns the string
"Fred".
xiNode
- The node to search below
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |