InternalValidate method
void
InternalValidate(
)
override
Validate instance.
Implementation
@override
void InternalValidate() {
super.InternalValidate();
if (this._otherPropertyDefinition == null && this._value == null) {
throw new ServiceValidationException(
"Strings.EqualityComparisonFilterIsInvalid");
} else if (_value != null) {
// All common value types (String, Int32, DateTime, ...) implement IConvertible.
// Value types that don't implement IConvertible must implement ISearchStringProvider
// in order to be used in a search filter.
// todo fix IConvertible validation
print(".. not implemented IConvertible");
// if (!((value is IConvertible) ||
// (value is ISearchStringProvider))) {
// throw new ServiceValidationException(
// "string.Format(Strings.SearchFilterComparisonValueTypeIsNotSupported, value.GetType().Name)");
// }
}
}