53 lines
1.2 KiB
Java
53 lines
1.2 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package com.tridium.data;
|
|
|
|
import java.util.Hashtable;
|
|
import java.util.Vector;
|
|
import javax.baja.collection.Column;
|
|
import javax.baja.collection.ColumnList;
|
|
|
|
public class DataColumnList
|
|
implements ColumnList {
|
|
private Vector list = new Vector(5);
|
|
private Hashtable table = new Hashtable();
|
|
|
|
public int size() {
|
|
return this.list.size();
|
|
}
|
|
|
|
public Column get(int n) {
|
|
return (Column)this.list.elementAt(n);
|
|
}
|
|
|
|
public Column get(String string) {
|
|
return (Column)this.table.get(string);
|
|
}
|
|
|
|
public int indexOf(String string) {
|
|
int n = this.list.size();
|
|
int n2 = 0;
|
|
while (n2 < n) {
|
|
Column column = (Column)this.list.elementAt(n2);
|
|
if (column.getName().equals(string)) {
|
|
return n2;
|
|
}
|
|
++n2;
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
public void addColumn(Column column) {
|
|
this.list.addElement(column);
|
|
this.table.put(column.getName(), column);
|
|
}
|
|
|
|
public Column[] list() {
|
|
Object[] objectArray = new Column[this.list.size()];
|
|
this.list.copyInto(objectArray);
|
|
return objectArray;
|
|
}
|
|
}
|
|
|