/** * {@inheritDoc} */ @Override public TypeEnumerationPropertyDescriptor clone() { TypeEnumerationPropertyDescriptor clonedDescriptor = (TypeEnumerationPropertyDescriptor) super .clone(); return clonedDescriptor; }
@Override public Object getDefaultValue() { Object defaultValue = super.getDefaultValue(); if (defaultValue == null && isMandatory()) { defaultValue = getEnumerationValues().get(0); } return defaultValue; } }
ComparableQueryStructure.class.getName()); BasicEnumerationPropertyDescriptor comparatorPropertyDescriptor = new BasicEnumerationPropertyDescriptor(); comparatorPropertyDescriptor.setName(COMPARATOR); if (getI18nNameKey() != null) { comparatorPropertyDescriptor.setI18nNameKey(getI18nNameKey()); } else { comparatorPropertyDescriptor.setI18nNameKey(getName()); comparatorPropertyDescriptor.setEnumerationName("OP"); Map<String, String> values = new LinkedHashMap<>(); values.put(EQ, null); values.put(NU, null); values.put(NN, null); comparatorPropertyDescriptor.setValuesAndIconImageUrls(values); comparatorPropertyDescriptor.setGrantedRoles(propertyDescriptor .getGrantedRoles());