Exemplo n.º 1
0
  /**
   * Bind a named Element within a map that represents a property.
   *
   * @param binding the element to store.
   * @see org.w3c.dom.NamedNodeMap
   */
  public void setNamedBinding(String map, String name, ActiveElement elt) {
    if (elt instanceof Namespace) {
      setBinding(name, elt);
      return;
    }

    Namespace binding = (Namespace) getBinding(map);

    if (binding == null) {
      binding = new BasicNamespace(map);
      binding.setBinding(name, elt);
      setBinding(map, (BasicNamespace) binding);
    } else {
      binding.setBinding(name, elt);
    }
  }