|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.nds.dirxml.driver.xds.DocumentImpl
com.novell.nds.dirxml.driver.xds.XDSCommandResultDocument
The XmlDocument returned from method execute(XmlDocument,
XmlQueryProcessor) of interface XmlCommandProcessor.
Interface SubscriptionShim implements this method. An
XmlCommandProcessor object reference is passed to the
PublicationShim.start(XmlCommandProcessor) method.
| Constructor Summary | |
XDSCommandResultDocument()
Constructs an empty, writeable result document. |
|
XDSCommandResultDocument(DTDVersion dtdVersion)
Constructs an empty, writeable result doucment. |
|
XDSCommandResultDocument(com.novell.nds.dirxml.driver.XmlDocument xdsXML)
Constructs a readable result document from an existing XDS-formatted, XML document. |
|
| Method Summary | |
XDSAddAssociationElement |
appendAddAssociationElement()
Appends an empty, child <add-association> element to
this document's <output> element. |
XDSInitParamsElement |
appendInitParamsElement()
Appends an empty, child <init-params> element to this
document's <input> or <output>
element. |
XDSInstanceElement |
appendInstanceElement()
Appends an empty, child <instance> element to this
document's <output> element. |
XDSModifyAssociationElement |
appendModifyAssociationElement()
Appends an empty, child <modify-association> element
to this document's <output> element. |
XDSQueryTokenElement |
appendQueryTokenElement(String someToken)
Appends an empty, child <query-token> element to this
document's <output> element. |
XDSRemoveAssociationElement |
appendRemoveAssociationElement()
Deprecated. Drivers should no longer issue <remove-association> commands. |
XDSSourceElement |
appendSourceElement()
Appends an empty, child <source> element to this
document's <nds> element. |
XDSStatusElement |
appendStatusElement()
Appends an empty, child <status> element to this
document's <input> or <output>
element. |
List |
childElements()
Returns the child elements of this document's <output> element. |
boolean |
containsQueryToken(String someToken)
Does this document contain a specific query token? |
boolean |
containsQueryTokenElements()
Does this document contain query token elements? |
void |
empty()
Removes all child nodes from this document's <input>
or <output> element. |
List |
extractInstanceElements()
Returns this document's <instance> elements. |
List |
extractQueryTokenElements()
Returns this document's <query-token> elements. |
XDSSourceElement |
extractSourceElement()
Returns this document's <source> element. |
List |
extractStatusElements()
Returns this document's <status> elements. |
List |
extractStatusElements(String someID)
Returns the status elements with an event-id attribute
value equal to someID. |
DTDVersion |
getDTDVersion()
Returns the dtdversion attribute value from this document's
<nds> element. |
XDSStatusElement |
mostSevereStatusElement(String someID)
Returns the status element with the most severe level
attribute value with an event-id attribute value equal to
someID. |
StatusLevel |
mostSevereStatusLevel(String someID)
Returns the most severe level attribute value for all
<status> elements with an event-id
attribute value equal to someID. |
com.novell.nds.dirxml.driver.XmlDocument |
toXML()
Converts this document into an XmlDocument. |
void |
validate()
Validates this document. |
| Methods inherited from class com.novell.nds.dirxml.driver.xds.DocumentImpl |
domDocument, domIOElement, domNDSElement, isEmpty |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.novell.nds.dirxml.driver.xds.XDSDocument |
domDocument, domIOElement, domNDSElement, isEmpty |
| Constructor Detail |
public XDSCommandResultDocument(com.novell.nds.dirxml.driver.XmlDocument xdsXML)
throws XDSParseException
This constructor should be used to parse documents returned from the
XmlCommandProcessor object passed to method
start(XmlCommandProcessor) of interface
PublicationShim
xdsXML - must not be null
XDSParseException - thrown if xdsXML is empty,
malformed, or invalidSkeletonPublicationShim.start(com.novell.nds.dirxml.driver.XmlCommandProcessor)public XDSCommandResultDocument()
This constructor should be used to build documents returned from method
execute(XmlDocument, XmlQueryProcessor) of interface
SubscriptionShim.
SkeletonSubscriptionShim.execute(XmlDocument,
com.novell.nds.dirxml.driver.XmlQueryProcessor)public XDSCommandResultDocument(DTDVersion dtdVersion)
This constructor should be used to build documents returned from method
execute(XmlDocument, XmlQueryProcessor) of interface
SubscriptionShim.
dtdVersion - must not be nullSkeletonSubscriptionShim.execute(XmlDocument,
com.novell.nds.dirxml.driver.XmlQueryProcessor)| Method Detail |
public DTDVersion getDTDVersion()
ReadableDocumentdtdversion attribute value from this document's
<nds> element.
getDTDVersion in interface ReadableDocumentnull; if absent, this method
returns DTDVersion.UNKNOWNpublic XDSSourceElement extractSourceElement()
ReadableDocument<source> element.
extractSourceElement in interface ReadableDocumentnullpublic List extractStatusElements(String someID)
QueryResultDocumentevent-id attribute
value equal to someID.
extractStatusElements in interface QueryResultDocumentsomeID - may be null
Collections.EMPTY_LIST or a list of
XDSStatusElement objects; will not return
nullpublic List extractStatusElements()
QueryResultDocument<status> elements.
extractStatusElements in interface QueryResultDocumentCollections.EMPTY_LIST or a list of
XDSStatusElement objects; will not return
nullpublic XDSStatusElement mostSevereStatusElement(String someID)
QueryResultDocumentlevel
attribute value with an event-id attribute value equal to
someID.
If no matching status element is found, the status element with the most severe level is returned irrespective of event-id value.
mostSevereStatusElement in interface QueryResultDocumentsomeID - may be null
nullpublic StatusLevel mostSevereStatusLevel(String someID)
QueryResultDocumentlevel attribute value for all
<status> elements with an event-id
attribute value equal to someID.
If no matching status element is found, the most severe status level is returned irrespective of event-id value. If no status info is available, StatusLevel.SUCCESS is returned.
mostSevereStatusLevel in interface QueryResultDocumentsomeID - may be null
nullpublic List extractInstanceElements()
QueryResultDocument<instance> elements.
extractInstanceElements in interface QueryResultDocumentCollections.EMPTY_LIST or a list of
XDSInstanceElement objects; will not return
nullpublic boolean containsQueryTokenElements()
QueryResultDocument
containsQueryTokenElements in interface QueryResultDocumenttrue if it does, false otherwisepublic boolean containsQueryToken(String someToken)
QueryResultDocument
containsQueryToken in interface QueryResultDocumentsomeToken - may be null
true if it does, false otherwisepublic List extractQueryTokenElements()
QueryResultDocument<query-token> elements.
extractQueryTokenElements in interface QueryResultDocumentCollections.EMPTY_LIST or a list of
XDSStatusElement objects; will not return
nullpublic List childElements()
<output> element.
childElements in interface ReadableDocumentCollections.EMPTY_LIST or a list of
XDSStatusElement, XDSInstanceElement,
XDSQueryToken, and NonXDSElement
objects; will not return nullpublic XDSAddAssociationElement appendAddAssociationElement()
<add-association> element to
this document's <output> element.
nullpublic XDSRemoveAssociationElement appendRemoveAssociationElement()
<remove-association> commands.
<remove-association> element
to this document's <output> element.
null
public void validate()
throws XDSParseException
WriteableDocument
validate in interface WriteableDocumentXDSParseException - if this document is malformed or invalidpublic XDSInstanceElement appendInstanceElement()
<instance> element to this
document's <output> element.
appendInstanceElement in interface QueryResultDocumentnullpublic XDSQueryTokenElement appendQueryTokenElement(String someToken)
QueryResultDocument<query-token> element to this
document's <output> element.
appendQueryTokenElement in interface QueryResultDocumentsomeToken - the unique token for the source query of this document;
should not be null
nullpublic XDSModifyAssociationElement appendModifyAssociationElement()
<modify-association> element
to this document's <output> element.
nullpublic XDSInitParamsElement appendInitParamsElement()
StateDocument<init-params> element to this
document's <input> or <output>
element. When called more than once, no action is taken and the same
<init-params> element is returned.
appendInitParamsElement in interface StateDocumentnullpublic XDSSourceElement appendSourceElement()
WriteableDocument<source> element to this
document's <nds> element. When called more than
once, no action is taken and the same <source>
element is returned.
appendSourceElement in interface WriteableDocumentnullpublic XDSStatusElement appendStatusElement()
StatusDocument<status> element to this
document's <input> or <output>
element.
appendStatusElement in interface StatusDocumentnullpublic com.novell.nds.dirxml.driver.XmlDocument toXML()
WriteableDocumentXmlDocument.
toXML in interface WriteableDocumentXmlDocumentpublic void empty()
WriteableDocument<input>
or <output> element.
empty in interface WriteableDocument
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||