public Field tryToInstantiateField(
     ClassAccessor classAccessor, PropertyAccessor propertyAccessor, Mode mode, String prefix) {
   if (String.class.isAssignableFrom(propertyAccessor.getType())
       && propertyAccessor.isAnnotationPresent(FileBlob.class)) {
     return new FileBlobField(propertyAccessor, mode, prefix);
   }
   return null;
 }
Exemplo n.º 2
0
  public SearchField tryToInstantiateSearchField(
      ClassAccessor classAccessor, PropertyAccessor propertyAccessor, String prefix) {
    Class type = propertyAccessor.getType();
    if (Util.isNumericType(type)) {
      return new RangeSearchField(propertyAccessor, prefix);
    }

    return null;
  }
Exemplo n.º 3
0
  public Field tryToInstantiateField(
      ClassAccessor classAccessor, PropertyAccessor propertyAccessor, Mode mode, String prefix) {
    Class type = propertyAccessor.getType();
    if (Util.isNumericType(type)) {
      return new NumericField(propertyAccessor, mode, prefix);
    }

    return null;
  }