Пример #1
0
 // XMLList will remove will delete all items in the list (a set delete) this differs from the
 // XMLList delete operator.
 void remove() {
   int nLen = length();
   for (int i = nLen - 1; i >= 0; i--) {
     XML xml = getXmlFromAnnotation(i);
     if (xml != null) {
       xml.remove();
       internalRemoveFromList(i);
     }
   }
 }
Пример #2
0
  @Override
  public void delete(int index) {
    if (index >= 0 && index < length()) {
      XML xml = getXmlFromAnnotation(index);

      xml.remove();

      internalRemoveFromList(index);
    }
  }