Interface ILcdXMLEditableElement

All Superinterfaces:
ILcdXMLElement
All Known Implementing Classes:
TLcdXMLElement

public interface ILcdXMLEditableElement extends ILcdXMLElement
Deprecated.
Use of the com.format.xml API has been deprecated. Instead, use the com.format.xml.bind API.
A general interface representing an XML element, providing editable access to its attributes and contents. This interface is subject to changes. It should currently not be implemented by users.
  • Method Details

    • setName

      void setName(TLcdXMLName aName)
      Deprecated.
      Sets the name of this XML element.
      Parameters:
      aName - the name of this XML element.
    • setAttribute

      void setAttribute(TLcdXMLName aName, Object aValue)
      Deprecated.
      Adds the given attribute (name,value) pair to this element.
      Parameters:
      aName - the name of the attribute.
      aValue - the value of the attribute.
    • removeAttribute

      void removeAttribute(TLcdXMLName aName)
      Deprecated.
      Removes the attribute with the given name, if it exists.
      Parameters:
      aName -
    • addContent

      void addContent(Object aContent)
      Deprecated.
      Adds the given content at the end of this element.
      Parameters:
      aContent - the content to be added.
    • addContent

      void addContent(int aIndex, Object aContent)
      Deprecated.
      Inserts the specified content at the specified position in this XML element. Shifts the element currently at that position and any subsequent elements to the right.
      Parameters:
      aIndex - the position at which to insert the specified content.
      aContent - the content to be inserted.
    • setContent

      void setContent(int aIndex, Object aContent)
      Deprecated.
      Replaces the content at the specified position with the specified content.
      Parameters:
      aIndex - the position of the content to be replaced.
      aContent - the content to be stored at the specified position.
      Throws:
      IndexOutOfBoundsException - if the specified index is out of range.
      IllegalArgumentException - if the specified content cannot replace the content at the specified position.
    • removeContent

      void removeContent(int aIndex)
      Deprecated.
      Removes the content at the specified position from this XML element. Shifts any subsequent elements to the left.
      Parameters:
      aIndex - the position of the content to be removed.
      Throws:
      IndexOutOfBoundsException - if the specified index is out of range.
      IllegalArgumentException - if the content at the specified position cannot be removed.