public static CsticModel createCheckBoxCstic() { final CsticModel cstic = new CsticModelImpl(); cstic.setName(CHBOX_NAME); cstic.setLanguageDependentName(CHBOX_LD_NAME); cstic.setValueType(CsticModel.TYPE_STRING); cstic.setTypeLength(8); cstic.setNumberScale(0); cstic.setComplete(false); cstic.setConsistent(true); cstic.setConstrained(true); cstic.setMultivalued(true); cstic.setReadonly(false); cstic.setRequired(true); cstic.setVisible(false); cstic.setSingleValue("X"); final List<CsticValueModel> assignableValues = new ArrayList<CsticValueModel>(); final CsticValueModel value = new CsticValueModelImpl(); value.setName("X"); assignableValues.add(value); cstic.setAssignableValues(assignableValues); cstic.setStaticDomainLength(assignableValues.size()); return cstic; }
private static CsticValueModel createCsticValue(final String value) { final CsticValueModel valueModel = new CsticValueModelImpl(); valueModel.setName(value); valueModel.setLanguageDependentName(value); return valueModel; }