public FormIndex incrementIndex(FormIndex index, Boolean descend) { ArrayList indexes = new ArrayList(); ArrayList multiplicities = new ArrayList(); ArrayList elements = new ArrayList(); if (index.isEndOfFormIndex()) { return(index); } else if (index.isBeginningOfFormIndex()) { if (form.Children == null || form.Children.Count == 0) { return(FormIndex.createEndOfFormIndex()); } } else { form.collapseIndex(index, indexes, multiplicities, elements); } incrementHelper(indexes, multiplicities, elements, descend); if (indexes.Count == 0) { return(FormIndex.createEndOfFormIndex()); } else { return(form.buildIndex(indexes, multiplicities, elements)); } }
public virtual FormIndex incrementIndex(FormIndex index, bool descend) { System.Collections.ArrayList indexes = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10)); System.Collections.ArrayList multiplicities = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10)); System.Collections.ArrayList elements = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10)); if (index.EndOfFormIndex) { return(index); } else if (index.BeginningOfFormIndex) { if (form.getChildren() == null || form.getChildren().size() == 0) { return(FormIndex.createEndOfFormIndex()); } } else { form.collapseIndex(index, indexes, multiplicities, elements); } incrementHelper(indexes, multiplicities, elements, descend); if (indexes.Count == 0) { return(FormIndex.createEndOfFormIndex()); } else { return(form.buildIndex(indexes, multiplicities, elements)); } }