Refine search
private void setHintForNextCurve(Vector curveHints, int pointIndex, Hint hint) { while (curveHints.size() <= pointIndex) { curveHints.addElement(_initialHintForNextCurve); } curveHints.setElementAt(hint, pointIndex); } }
public void remove (String l, String t) { for (int i = 0;i < tokens.size();i++) { tokens.setElementAt(remove ((String)tokens.elementAt(i), l, t), i); } }
/** * Used with quicksort method above */ private static int partition(Vector rules, int p, int r) { final WhitespaceRule x = (WhitespaceRule)rules.elementAt((p+r) >>> 1); int i = p - 1, j = r + 1; while (true) { while (x.compareTo((WhitespaceRule)rules.elementAt(--j)) < 0) { } while (x.compareTo((WhitespaceRule)rules.elementAt(++i)) > 0) { } if (i < j) { final WhitespaceRule tmp = (WhitespaceRule)rules.elementAt(i); rules.setElementAt(rules.elementAt(j), i); rules.setElementAt(tmp, j); } else { return j; } } }
for (int i = 0; i < acls.size(); i++) String acl = (String)acls.elementAt(i); if (acl.startsWith("\"") && acl.endsWith("\"")) acls.setElementAt(acl, i);
/** * Set the Attribute's value; required * * @param value the attribute's value */ public void setValue(String value) { if (currentIndex >= values.size()) { values.addElement(value); currentIndex = values.size() - 1; } else { values.setElementAt(value, currentIndex); } }
/** * Replace an "xsl:template" property. * This is a hook for CompilingStylesheetHandler, to allow * us to access a template, compile it, instantiate it, * and replace the original with the compiled instance. * ADDED 9/5/2000 to support compilation experiment * * @param v Compiled template to replace with * @param i Index of template to be replaced * * @throws TransformerException */ public void replaceTemplate(ElemTemplate v, int i) throws TransformerException { if (null == m_templates) throw new ArrayIndexOutOfBoundsException(); replaceChild(v, (ElemTemplateElement)m_templates.elementAt(i)); m_templates.setElementAt(v, i); v.setStylesheet(this); }
if (i >= b.size()) b.insertElementAt(a.elementAt(i), i); else b.setElementAt(a.elementAt(i), i); if (r + m + 1 - j >= b.size()) b.insertElementAt(a.elementAt(j), r + m + 1 - j); else b.setElementAt(a.elementAt(j), r + m + 1 - j); a.setElementAt(b.elementAt(i), k); a.setElementAt(b.elementAt(j), k);
PSQLState.INVALID_CURSOR_STATE); if (isBeforeFirst() || isAfterLast() || rows.size() == 0) return ; int numKeys = primaryKeys.size(); rows.setElementAt( rowBuffer, current_row ); this_row = rowBuffer;
/** * Replace an "xsl:template" property. * This is a hook for CompilingStylesheetHandler, to allow * us to access a template, compile it, instantiate it, * and replace the original with the compiled instance. * ADDED 9/5/2000 to support compilation experiment * * @param v Compiled template to replace with * @param i Index of template to be replaced * * @throws TransformerException */ public void replaceTemplate(ElemTemplate v, int i) throws TransformerException { if (null == m_templates) throw new ArrayIndexOutOfBoundsException(); replaceChild(v, (ElemTemplateElement)m_templates.elementAt(i)); m_templates.setElementAt(v, i); v.setStylesheet(this); }
public Type typeCheck(SymbolTable stable) throws TypeCheckError { final Vector contents = getContents(); final int n = contents.size(); for (int i = 0; i < n; i++) { final Expression exp = (Expression)contents.elementAt(i); if (!exp.typeCheck(stable).identicalTo(Type.String)) { contents.setElementAt(new CastExpr(exp, Type.String), i); } } return _type = Type.String; }
if (isBeforeFirst() || isAfterLast() || rows.size() == 0) int numKeys = primaryKeys.size(); rows.setElementAt( rowBuffer, current_row );
String rd[] = (String []) tr.rows.elementAt(row); StringBuffer sb = new StringBuffer(); sb.append("SELECT "); tr.rows.setElementAt(trnew.rows.elementAt(0), row);
if (i >= b.size()) b.insertElementAt(a.elementAt(i), i); else b.setElementAt(a.elementAt(i), i); if (r + m + 1 - j >= b.size()) b.insertElementAt(a.elementAt(j), r + m + 1 - j); else b.setElementAt(a.elementAt(j), r + m + 1 - j); a.setElementAt(b.elementAt(i), k); a.setElementAt(b.elementAt(j), k);
/** * Set the Attribute's value; required * * @param value the attribute's value */ public void setValue( String value ) { if ( currentIndex >= values.size() ) { values.addElement( value ); currentIndex = values.size() - 1; } else { values.setElementAt( value, currentIndex ); } }
ElemTemplateElement midNode = (ElemTemplateElement) v.elementAt( ( lo0 + hi0 ) / 2 ); while( (lo < hi0) && (((ElemTemplateElement) v.elementAt(lo)).compareTo(midNode) < 0) ) while( (hi > lo0) && (((ElemTemplateElement) v.elementAt(hi)).compareTo(midNode) > 0) ) { --hi; ElemTemplateElement node = (ElemTemplateElement) v.elementAt(lo); v.setElementAt(v.elementAt(hi), lo); v.setElementAt(node, hi);
/** * NEEDSDOC Method replaceOrPushUserParam * * * NEEDSDOC @param qname * NEEDSDOC @param xval */ private void replaceOrPushUserParam(QName qname, XObject xval) { int n = m_userParams.size(); for (int i = n - 1; i >= 0; i--) { Arg arg = (Arg) m_userParams.elementAt(i); if (arg.getQName().equals(qname)) { m_userParams.setElementAt(new Arg(qname, xval, true), i); return; } } m_userParams.addElement(new Arg(qname, xval, true)); }
/** * set header information */ public void setHeader(String ID, String DBFName) { if (idVector.size() == 0) { idVector.addElement(ID); dataVector.addElement(DBFName); } else { idVector.setElementAt(ID, 0); dataVector.setElementAt(DBFName, 0); } return; }
ElemTemplateElement midNode = (ElemTemplateElement) v.elementAt( ( lo0 + hi0 ) / 2 ); while( (lo < hi0) && (((ElemTemplateElement) v.elementAt(lo)).compareTo(midNode) < 0) ) while( (hi > lo0) && (((ElemTemplateElement) v.elementAt(hi)).compareTo(midNode) > 0) ) { --hi; ElemTemplateElement node = (ElemTemplateElement) v.elementAt(lo); v.setElementAt(v.elementAt(hi), lo); v.setElementAt(node, hi);
/** * NEEDSDOC Method replaceOrPushUserParam * * * NEEDSDOC @param qname * NEEDSDOC @param xval */ private void replaceOrPushUserParam(QName qname, XObject xval) { int n = m_userParams.size(); for (int i = n - 1; i >= 0; i--) { Arg arg = (Arg) m_userParams.elementAt(i); if (arg.getQName().equals(qname)) { m_userParams.setElementAt(new Arg(qname, xval, true), i); return; } } m_userParams.addElement(new Arg(qname, xval, true)); }
/** * set header information */ public void setHeader(String ID, String DBFName) { if (idVector.size() == 0) { idVector.addElement(ID); dataVector.addElement(DBFName); } else { idVector.setElementAt(ID, 0); dataVector.setElementAt(DBFName, 0); } return; }