public void adjustColumnCount(int col) { while (col > columnInfo_.size()) { RefexDynamicColumnInfo rdci = new RefexDynamicColumnInfo(); rdci.setColumnOrder(columnInfo_.size()); columnInfo_.add(rdci); } while (columnInfo_.size() > col) { columnInfo_.remove(columnInfo_.size() - 1); } }
public RefexData( String name, String description, ConceptVersionBI parentConcept, int extendedFieldsCount, boolean isAnnotatedStyle, ComponentType componentTypeRestriction) { this.refexName_ = name; this.refexDescription_ = description; this.parentConcept_ = parentConcept; this.isAnnotatedStyle_ = isAnnotatedStyle; this.componentTypeRestriction_ = componentTypeRestriction; for (int i = 0; i < extendedFieldsCount; i++) { RefexDynamicColumnInfo rdci = new RefexDynamicColumnInfo(); rdci.setColumnOrder(i); columnInfo_.add(rdci); } }
public void setColumnVals( int currentCol, ConceptVersionBI colNameConcept, RefexDynamicDataType type, RefexDynamicDataBI defaultValueObject, boolean isMandatory, RefexDynamicValidatorType validatorType, RefexDynamicDataBI validatorData) { adjustColumnCount(currentCol); RefexDynamicColumnInfo rdci = columnInfo_.get(currentCol); rdci.setColumnDescriptionConcept(colNameConcept.getPrimordialUuid()); rdci.setColumnDataType(type); rdci.setColumnDefaultData(defaultValueObject); rdci.setColumnRequired(isMandatory); rdci.setValidatorType(validatorType); rdci.setValidatorData(validatorData); }