/** * Is valid registration? * * @param conditionValue Condition value. (NotNull) * @param value Value. (NotNull) * @param callerName Caller name. (NotNull) * @return Determination. */ public boolean isValidRegistration( Sample2ConditionValue conditionValue, Object value, String callerName) { if (value == null) { return false; } if (value instanceof java.util.List && ((java.util.List<?>) value).isEmpty()) { return false; } if (value instanceof java.util.List) { if (conditionValue.hasNotInScope()) { if (conditionValue.equalNotInScope(((java.util.List<?>) value))) { _log.warn("The value has already registered at " + callerName + ": value=" + value); return false; } else { conditionValue.overrideNotInScope(((java.util.List<?>) value)); return false; } } } return true; }