/** * Validates this instance. * * @throws ServiceVersionException the service version exception * @throws Exception the exception */ @Override public void validate() throws ServiceVersionException, Exception { super.validate(); Object fileAsMapping; OutParam<Object> outParam = new OutParam<Object>(); if (this.tryGetProperty(ContactSchema.FileAsMapping, outParam)) { fileAsMapping = outParam.getParam(); // FileAsMapping is extended by 5 new values in 2010 mode. Validate // that they are used according the version. EwsUtilities.validateEnumVersionValue( (FileAsMapping) fileAsMapping, this.getService() .getRequestedServerVersion()); } }
/** * Validates this instance. * * @throws ServiceVersionException the service version exception * @throws Exception the exception */ @Override public void validate() throws ServiceVersionException, Exception { super.validate(); Object fileAsMapping; OutParam<Object> outParam = new OutParam<Object>(); if (this.tryGetProperty(ContactSchema.FileAsMapping, outParam)) { fileAsMapping = outParam.getParam(); // FileAsMapping is extended by 5 new values in 2010 mode. Validate // that they are used according the version. EwsUtilities.validateEnumVersionValue( (FileAsMapping) fileAsMapping, this.getService() .getRequestedServerVersion()); } }