OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 86 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.openconcerto.modules.extensionbuilder.list;

import java.util.ArrayList;
import java.util.List;

public class ListDescriptor {

    private final List<ColumnDescriptor> columns = new ArrayList<ColumnDescriptor>();
    private String id;

    private String mainTable;

    public ListDescriptor(String id) {
        this.id = id;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setMainTable(String mainTable) {
        this.mainTable = mainTable;
    }

    public String getMainTable() {
        return this.mainTable;
    }

    public List<ColumnDescriptor> getColumns() {
        return this.columns;
    }

    @Override
    public String toString() {
        return this.id;
    }

    public void add(ColumnDescriptor f) {
        this.columns.add(f);

    }

    public int getColumnCount() {
        return this.columns.size();
    }

    public void removeAllColumns() {
        this.columns.clear();
    }

    public void remove(ColumnDescriptor c) {
        this.columns.remove(c);
    }
}