Package com.cognifide.slice.mapper.impl.processor

Examples of com.cognifide.slice.mapper.impl.processor.BooleanFieldProcessor


  public MapperBuilder addDefaultSliceProcessors() {
    processors.add(sliceReferenceFieldProcessor); // @SliceReference
    processors.add(sliceResourceFieldProcessor); // @SliceResource
    processors.add(childrenFieldProcessor); // child models @Children
    processors.add(new ListFieldProcessor()); // Subclasses of Collection<?> and arrays
    processors.add(new BooleanFieldProcessor()); // booleans
    processors.add(new EnumFieldProcessor()); // enums
    processors.add(new DefaultFieldProcessor()); // any other fields

    postProcessors.add(new EscapeValuePostProcessor());
    return this;
View Full Code Here


  }

  public Mapper getMapper() {
    final Mapper mapper = mapperFactory.getMapper();

    mapper.registerFieldProcessor(new BooleanFieldProcessor());
    mapper.registerFieldProcessor(sliceResourceFieldProcessor);
    mapper.registerFieldProcessor(sliceReferenceFieldProcessor);
    mapper.registerFieldPostProcessor(new EscapeValuePostProcessor());

    return mapper;
View Full Code Here

TOP

Related Classes of com.cognifide.slice.mapper.impl.processor.BooleanFieldProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.