/**
  * Set the value of a specific attribute.
  *
  * @param index The index of the attribute (zero-based).
  * @param value The attribute's value.
  * @exception java.lang.ArrayIndexOutOfBoundsException When the supplied index does not point to
  *     an attribute in the list.
  */
 public void setValue(int index, String value) {
   if (index >= 0 && index < length) {
     data[index * 5 + 4] = value;
   } else {
     badIndex(index);
   }
 }
 /**
  * Set the qualified name of a specific attribute.
  *
  * @param index The index of the attribute (zero-based).
  * @param qName The attribute's qualified name, or the empty string for none.
  * @exception java.lang.ArrayIndexOutOfBoundsException When the supplied index does not point to
  *     an attribute in the list.
  */
 public void setQName(int index, String qName) {
   if (index >= 0 && index < length) {
     data[index * 5 + 2] = qName;
   } else {
     badIndex(index);
   }
 }
 /**
  * Set the type of a specific attribute.
  *
  * @param index The index of the attribute (zero-based).
  * @param type The attribute's type.
  * @exception java.lang.ArrayIndexOutOfBoundsException When the supplied index does not point to
  *     an attribute in the list.
  */
 public void setType(int index, String type) {
   if (index >= 0 && index < length) {
     data[index * 5 + 3] = type;
   } else {
     badIndex(index);
   }
 }
 /**
  * Set the Namespace URI of a specific attribute.
  *
  * @param index The index of the attribute (zero-based).
  * @param uri The attribute's Namespace URI, or the empty string for none.
  * @exception java.lang.ArrayIndexOutOfBoundsException When the supplied index does not point to
  *     an attribute in the list.
  */
 public void setURI(int index, String uri) {
   if (index >= 0 && index < length) {
     data[index * 5] = uri;
   } else {
     badIndex(index);
   }
 }
 /**
  * Set the local name of a specific attribute.
  *
  * @param index The index of the attribute (zero-based).
  * @param localName The attribute's local name, or the empty string for none.
  * @exception java.lang.ArrayIndexOutOfBoundsException When the supplied index does not point to
  *     an attribute in the list.
  */
 public void setLocalName(int index, String localName) {
   if (index >= 0 && index < length) {
     data[index * 5 + 1] = localName;
   } else {
     badIndex(index);
   }
 }
 /**
  * Set an attribute in the list.
  *
  * <p>For the sake of speed, this method does no checking for name conflicts or well-formedness:
  * such checks are the responsibility of the application.
  *
  * @param index The index of the attribute (zero-based).
  * @param uri The Namespace URI, or the empty string if none is available or Namespace processing
  *     is not being performed.
  * @param localName The local name, or the empty string if Namespace processing is not being
  *     performed.
  * @param qName The qualified name, or the empty string if qualified names are not available.
  * @param type The attribute type as a string.
  * @param value The attribute value.
  * @exception java.lang.ArrayIndexOutOfBoundsException When the supplied index does not point to
  *     an attribute in the list.
  */
 public void setAttribute(
     int index, String uri, String localName, String qName, String type, String value) {
   if (index >= 0 && index < length) {
     data[index * 5] = uri;
     data[index * 5 + 1] = localName;
     data[index * 5 + 2] = qName;
     data[index * 5 + 3] = type;
     data[index * 5 + 4] = value;
   } else {
     badIndex(index);
   }
 }
示例#7
0
 /*     */ public void setAttribute(
     int index, String uri, String localName, String qName, String type, String value)
       /*     */ {
   /* 440 */ if ((index >= 0) && (index < this.length)) {
     /* 441 */ this.data[(index * 5)] = uri;
     /* 442 */ this.data[(index * 5 + 1)] = localName;
     /* 443 */ this.data[(index * 5 + 2)] = qName;
     /* 444 */ this.data[(index * 5 + 3)] = type;
     /* 445 */ this.data[(index * 5 + 4)] = value;
     /*     */ } else {
     /* 447 */ badIndex(index);
     /*     */ }
   /*     */ }
 /**
  * Remove an attribute from the list.
  *
  * @param index The index of the attribute (zero-based).
  * @exception java.lang.ArrayIndexOutOfBoundsException When the supplied index does not point to
  *     an attribute in the list.
  */
 public void removeAttribute(int index) {
   if (index >= 0 && index < length) {
     if (index < length - 1) {
       System.arraycopy(data, (index + 1) * 5, data, index * 5, (length - index - 1) * 5);
     }
     index = (length - 1) * 5;
     data[index++] = null;
     data[index++] = null;
     data[index++] = null;
     data[index++] = null;
     data[index] = null;
     length--;
   } else {
     badIndex(index);
   }
 }
示例#9
0
 /*     */ public void removeAttribute(int index) /*     */ {
   /* 462 */ if ((index >= 0) && (index < this.length)) {
     /* 463 */ if (index < this.length - 1) {
       /* 464 */ System.arraycopy(
           this.data, (index + 1) * 5, this.data, index * 5, (this.length - index - 1) * 5);
       /*     */ }
     /*     */
     /* 467 */ index = (this.length - 1) * 5;
     /* 468 */ this.data[(index++)] = null;
     /* 469 */ this.data[(index++)] = null;
     /* 470 */ this.data[(index++)] = null;
     /* 471 */ this.data[(index++)] = null;
     /* 472 */ this.data[index] = null;
     /* 473 */ this.length -= 1;
     /*     */ } else {
     /* 475 */ badIndex(index);
     /*     */ }
   /*     */ }
示例#10
0
 /*     */ public void setValue(int index, String value) /*     */ {
   /* 570 */ if ((index >= 0) && (index < this.length))
     /* 571 */ this.data[(index * 5 + 4)] = value;
   /*     */ else /* 573 */ badIndex(index);
   /*     */ }
示例#11
0
 /*     */ public void setType(int index, String type) /*     */ {
   /* 551 */ if ((index >= 0) && (index < this.length))
     /* 552 */ this.data[(index * 5 + 3)] = type;
   /*     */ else /* 554 */ badIndex(index);
   /*     */ }
示例#12
0
 /*     */ public void setQName(int index, String qName) /*     */ {
   /* 532 */ if ((index >= 0) && (index < this.length))
     /* 533 */ this.data[(index * 5 + 2)] = qName;
   /*     */ else /* 535 */ badIndex(index);
   /*     */ }
示例#13
0
 /*     */ public void setLocalName(int index, String localName) /*     */ {
   /* 512 */ if ((index >= 0) && (index < this.length))
     /* 513 */ this.data[(index * 5 + 1)] = localName;
   /*     */ else /* 515 */ badIndex(index);
   /*     */ }
示例#14
0
 /*     */ public void setURI(int index, String uri) /*     */ {
   /* 492 */ if ((index >= 0) && (index < this.length)) /* 493 */ this.data[(index * 5)] = uri;
   /*     */ else /* 495 */ badIndex(index);
   /*     */ }