com.novell.nds.dirxml.driver.xds
Class XDSAddElement

java.lang.Object
  extended bycom.novell.nds.dirxml.driver.xds.ElementImpl
      extended bycom.novell.nds.dirxml.driver.xds.XDSAddElement
All Implemented Interfaces:
AssociationElementParent, CommandElement, PasswordElementParent, XDSElement

public class XDSAddElement
extends ElementImpl
implements CommandElement, AssociationElementParent, PasswordElementParent

An <add> element.

See Also:
XDSCommandDocument.appendAddElement(), XDSCommandDocument.childElements()

Method Summary
 XDSAddAttrElement appendAddAttrElement()
          Appends an empty child <add-attr> element to this element.
 XDSAssociationElement appendAssociationElement(String someText)
          Appends a child <association> element to this element.
 XDSPasswordElement appendPasswordElement(String someText)
          Appends a child <password> element to this element.
 List childElements()
          Returns this element's child elements.
 List extractAddAttrElements()
          Returns this element's child add-attr elements.
 XDSAssociationElement extractAssociationElement()
          Returns this element's child <association> element.
 String extractAssociationText()
          Returns the concatenated child text nodes from this element's child <association> element.
 XDSPasswordElement extractPasswordElement()
          Returns this element's child <password> element.
 String extractPasswordText()
          Returns the concatenated child text nodes from this element's child <password> element.
 String getClassName()
          Gets the value of this element's class-name attribute.
 String getDestDN()
          Gets the value of this element's dest-dn attribute.
 String getEventID()
          Gets the value of this element's event-id attribute.
 String getQualifiedSrcDN()
          Gets the value of this element's qualified-src-dn attribute.
 String getSrcDN()
          Gets the value of this element's src-dn attribute.
 String getSrcEntryID()
          Gets the value of this element's src-entry-id attribute.
 String getTemplateDN()
          Gets the value of this element's template-dn attribute.
 void setClassName(String someName)
          Sets this element's class-name attribute to someName.
 void setDestDN(String someDN)
          Sets this element's dest-dn attribute to someDN.
 void setDestEntryID(String someID)
          Sets this element's dest-entry-id attribute to someID.
 void setEventID(String someID)
          Sets this element's event-id attribute to someID.
 void setSrcDN(String someDN)
          Sets this element's src-dn attribute to someDN.
 void setTemplateDN(String someDN)
          Sets this element's template-dn attribute to someDN.
 
Methods inherited from class com.novell.nds.dirxml.driver.xds.ElementImpl
attributeValueGet, attributeValueGet, attributeValueSet, documentImpl, domDocument, domElement, localName, namespaceName, position, tagName
 
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.XDSElement
attributeValueGet, attributeValueGet, attributeValueSet, domDocument, domElement, localName, namespaceName, position, tagName
 

Method Detail

getSrcDN

public String getSrcDN()
Gets the value of this element's src-dn attribute.

Invocation Context:
READ

Specified by:
getSrcDN in interface CommandElement
Returns:
may return null; will not return ""

getQualifiedSrcDN

public String getQualifiedSrcDN()
Gets the value of this element's qualified-src-dn attribute.

Invocation Context:
READ

Specified by:
getQualifiedSrcDN in interface CommandElement
Returns:
may return null; will not return ""
Since:
DTD 2.0

getClassName

public String getClassName()
Gets the value of this element's class-name attribute.

Invocation Context:
READ

Specified by:
getClassName in interface CommandElement
Returns:
will not return null; will not return ""

extractPasswordText

public String extractPasswordText()
Description copied from interface: PasswordElementParent
Returns the concatenated child text nodes from this element's child <password> element.

Invocation Context:
READ

Specified by:
extractPasswordText in interface PasswordElementParent
Returns:
may return null; will not return ""

extractPasswordElement

public XDSPasswordElement extractPasswordElement()
Description copied from interface: PasswordElementParent
Returns this element's child <password> element.

Invocation Context:
READ

Specified by:
extractPasswordElement in interface PasswordElementParent
Returns:
may return null

getDestDN

public String getDestDN()
Gets the value of this element's dest-dn attribute.

Invocation Context:
READ

Returns:
may return null; will not return ""

getEventID

public String getEventID()
Description copied from interface: CommandElement
Gets the value of this element's event-id attribute.

Invocation Context:
READ

Specified by:
getEventID in interface CommandElement
Returns:
may return null; will not return ""

getSrcEntryID

public String getSrcEntryID()
Gets the value of this element's src-entry-id attribute.

Invocation Context:
READ

Specified by:
getSrcEntryID in interface CommandElement
Returns:
may return null; will not return ""

getTemplateDN

public String getTemplateDN()
Gets the value of this element's template-dn attribute.

Invocation Context:
READ

Returns:
may return null; will not return ""

extractAddAttrElements

public List extractAddAttrElements()
Returns this element's child add-attr elements.

Invocation Context:
READ

Returns:
java.util.Collections.EMPTY_LIST or a list of XDSAddAttrElement objects; will not return null

childElements

public List childElements()
Returns this element's child elements.

Usage Notes:
The types of objects returned by this method may be extended in the future. Thus, callers should be able to handle object types other than those listed in the returns field below.
Invocation Context:
READ

Specified by:
childElements in interface XDSElement
Overrides:
childElements in class ElementImpl
Returns:
Collections.EMPTY_LIST or a list of XDSAssociationElement, XDSPasswordElement, XDSAddAttrElement, and NonXDSElement objects; will not return null

extractAssociationElement

public XDSAssociationElement extractAssociationElement()
Returns this element's child <association> element.

Invocation Context:
READ

Specified by:
extractAssociationElement in interface AssociationElementParent
Returns:
always returns null

extractAssociationText

public String extractAssociationText()
Returns the concatenated child text nodes from this element's child <association> element.

Invocation Context:
READ

Specified by:
extractAssociationText in interface AssociationElementParent
Returns:
always returns null

setSrcDN

public void setSrcDN(String someDN)
Sets this element's src-dn attribute to someDN.

Invocation Context:
WRITE

Parameters:
someDN - if null or "", no action is taken

setDestDN

public void setDestDN(String someDN)
Sets this element's dest-dn attribute to someDN.

Invocation Context:
WRITE

Parameters:
someDN - if null or "", no action is taken

setDestEntryID

public void setDestEntryID(String someID)
Sets this element's dest-entry-id attribute to someID.

Invocation Context:
WRITE

Parameters:
someID - if null or "", no action is taken

setClassName

public void setClassName(String someName)
Sets this element's class-name attribute to someName.

Invocation Context:
WRITE

Parameters:
someName - if null or "", no action is taken

setEventID

public void setEventID(String someID)
Description copied from interface: CommandElement
Sets this element's event-id attribute to someID.

Invocation Context:
WRITE

Specified by:
setEventID in interface CommandElement
Parameters:
someID - if null or "", no action is taken

setTemplateDN

public void setTemplateDN(String someDN)
Sets this element's template-dn attribute to someDN.

Invocation Context:
WRITE

Parameters:
someDN - if null or "", no action is taken

appendAddAttrElement

public XDSAddAttrElement appendAddAttrElement()
Appends an empty child <add-attr> element to this element.

Invocation Context:
WRITE

Returns:
will not return null

appendPasswordElement

public XDSPasswordElement appendPasswordElement(String someText)
Description copied from interface: PasswordElementParent
Appends a child <password> element to this element. The <password> element contains the text someText.

Invocation Context:
WRITE

Specified by:
appendPasswordElement in interface PasswordElementParent
Parameters:
someText - the password value; if null or "", an empty, child <password> element is appended
Returns:
will not return null

appendAssociationElement

public XDSAssociationElement appendAssociationElement(String someText)
Description copied from interface: AssociationElementParent
Appends a child <association> element to this element. The <association> element contains the text someText.

Invocation Context:
WRITE

Specified by:
appendAssociationElement in interface AssociationElementParent
Parameters:
someText - the association value; if null or "", an empty, child <association> element is appended
Returns:
will not return null