Example #1
0
 /**
  * Sets an element's attribute (using DOM level 2) with the specified value and namespace prefix
  * AND registers the ID value with the specified element. This is for resolving same-document ID
  * references.
  *
  * @param elem the element to set the attribute on
  * @param name the name of the attribute
  * @param value the attribute value. If null, no attribute is set.
  */
 public static void setAttributeID(Element elem, String name, String value) {
   if (value == null) return;
   elem.setAttributeNS(null, name, value);
   IdResolver.registerElementById(elem, value);
 }
 /*     */ public void setId(String paramString) /*     */ {
   /* 222 */ if (paramString != null) {
     /* 223 */ this._constructionElement.setAttributeNS(null, "Id", paramString);
     /* 224 */ IdResolver.registerElementById(this._constructionElement, paramString);
     /*     */ }
   /*     */ }