code: public void setElements(
                      final List<? extends Binding> bindings
                      )
      {
          if (bindings == null  ||  bindings.size() == 0) {
              clear();
              return;
          }
  
          for (Binding  binding : bindings) {
              if (binding == null) {
                  throw new IllegalArgumentException( "null elemnt" );
              }
          }
  
          clear();
          for (Binding  binding : bindings) {
              addElement( binding );
          }
      }
docs: Sets the element bindings of this binding.
  
  <p>If the specified list is null or empty,
  it clears the previous list.
  If one of the element in the list is null,
  the previous list is not modified and an exception is thrown.
  </p>
  
  @param   bindings
  a list of element bindings.
  @throws  IllegalArgumentException
  if the specified list contains a null element.
  The previous list of element bindings are preserved.