|
|
@ -421,7 +421,16 @@ public class MetaDataFieldSkeleton extends Composite{
|
|
|
|
* @return a string with the occurred error on error, null otherwise
|
|
|
|
* @return a string with the occurred error on error, null otherwise
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public String isFieldValueValid(){
|
|
|
|
public String isFieldValueValid(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
//Feature #18700
|
|
|
|
|
|
|
|
String value = getFieldCurrentValue().get(0);
|
|
|
|
|
|
|
|
if(value.isEmpty())
|
|
|
|
|
|
|
|
return checkValidator(value, field.getValidator()) ? null : MALFORMED_ATTRIBUTE;
|
|
|
|
|
|
|
|
}catch (Exception e) {
|
|
|
|
|
|
|
|
//continue
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
switch(field.getType()){
|
|
|
|
switch(field.getType()){
|
|
|
|
|
|
|
|
|
|
|
|
case Boolean :
|
|
|
|
case Boolean :
|
|
|
|