Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

SimpleColumnValidatorFactory.java 1.1KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. Copyright (c) 2014 James Ahlborn
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. package com.healthmarketscience.jackcess.util;
  14. import com.healthmarketscience.jackcess.Column;
  15. /**
  16. * Simple concrete implementation of ColumnValidatorFactory which returns
  17. * {@link SimpleColumnValidator#INSTANCE} for all columns.
  18. *
  19. * @author James Ahlborn
  20. */
  21. public class SimpleColumnValidatorFactory implements ColumnValidatorFactory
  22. {
  23. public static final SimpleColumnValidatorFactory INSTANCE =
  24. new SimpleColumnValidatorFactory();
  25. @Override
  26. public ColumnValidator createValidator(Column col) {
  27. return SimpleColumnValidator.INSTANCE;
  28. }
  29. }