|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDocumentImpl
org.dsmltools.DSMLDocumentImpl
public final class DSMLDocumentImpl
This class extends DocumentImpl, an implementation of the Document interface, to add DSML-specific functionality, such as directory-style validation.
Field Summary | |
---|---|
static int |
TAB_SIZE
The amount each line is indented from the previous one when a DSMLDocumentImpl is serialized. |
Constructor Summary | |
---|---|
DSMLDocumentImpl()
When we create new DSML documents, this constructor ensures that they will automatically have the <dsml> node. |
Method Summary | |
---|---|
static void |
serialize(org.w3c.dom.Document xiDoc,
java.io.OutputStream xiOut)
This method takes a Document and writes its contents as a stream of DSML to the given OutputStream. |
void |
serialize(java.io.OutputStream xiOut)
This method serializes this Document to the given OutputStream. |
void |
validate()
This function calls validate(this, null) on this Document. |
static void |
validate(org.w3c.dom.Document xiDoc)
This function calls validate(xiDoc, null) on this Document - in other words, validation using the Document's schema. |
static void |
validate(org.w3c.dom.Document xiDoc,
LDAPSchema xiSchema)
This function checks the directory data in the passed in Document for consistency at a directory (rather than XML) level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TAB_SIZE
Constructor Detail |
---|
public DSMLDocumentImpl()
Method Detail |
---|
public void validate() throws DSMLRefException
DSMLRefException
public static void validate(org.w3c.dom.Document xiDoc) throws DSMLRefException
xiDoc
- The Document to validate
DSMLRefException
public static void validate(org.w3c.dom.Document xiDoc, LDAPSchema xiSchema) throws DSMLRefException
xiDoc
- The Document to validatexiSchema
- An LDAPSchema object representing the schema to validate
against, or null to use the Document's schema.
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.public void serialize(java.io.OutputStream xiOut)
xiDoc
- Document to serializepublic static void serialize(org.w3c.dom.Document xiDoc, java.io.OutputStream xiOut)
xiDoc
- Document to serializexiOut
- OutputStream to serialize the document to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |