/*
 * The MIT License
 *
 *   Copyright (c) 2014, Mahmoud Ben Hassine (md.benhassine@gmail.com)
 *
 *   Permission is hereby granted, free of charge, to any person obtaining a copy
 *   of this software and associated documentation files (the "Software"), to deal
 *   in the Software without restriction, including without limitation the rights
 *   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *   copies of the Software, and to permit persons to whom the Software is
 *   furnished to do so, subject to the following conditions:
 *
 *   The above copyright notice and this permission notice shall be included in
 *   all copies or substantial portions of the Software.
 *
 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 *   THE SOFTWARE.
 */

package io.github.benas.jpopulator.api;

import java.util.List;

/**
 * Interface for java bean populator.
 *
 * @author Mahmoud Ben Hassine (md.benhassine@gmail.com)
 */
public interface Populator {

    /**
     * Populate a java bean instance for the given type.
     *
     * @param type the type for which a java bean instance will be populated
     * @param <T> the actual type of the target java bean
     * @return a populated instance of the given type
     */
    <T> T populateBean(final Class<T> type);

    /**
     * Populate a random number of java bean instances for the given type.
     *
     * @param type the type for which java bean instances will be populated
     * @param <T> the actual type of the target java bean
     * @return a list of populated instances of the given type
     */
    <T> List<T> populateBeans(final Class<T> type);

    /**
     * Populate a fixed number of java bean instances for the given type.
     *
     * @param type the type for which java bean instances will be populated
     * @param size the number of instances to populate
     * @param <T> the actual type of the target java bean
     * @return a list of populated instances of the given type
     */
    <T> List<T> populateBeans(final Class<T> type, int size);
    
    /**
     * Populate a java bean instance for the given type with the posibility of exclude some fields
     * 
     * @param <T>
     * @param type
     * @param excludeFieldsName
     * @return
     */
    <T> T populateBeanWithExcludeFields(Class<T> type, String... excludeFieldsName);

}

@@ -1707,32 +1707,505 @@
 lass%3CT%3E type);%0A%0A
+    /**%0A     * Populate a java bean instance for the given type with the possibility of exclude some fields.%0A     *%0A     * @param type the type for which a java bean instance will be populated%0A     * @param excludeFieldsName the name of fields to exclude%0A     * @param %3CT%3E the actual type of the target java bean%0A     * @return a populated instance of the given type%0A     */%0A    %3CT%3E T populateBeanWithExcludeFields(final Class%3CT%3E type, final String... excludeFieldsName);%0A%0A
     /**%0A     * P
@@ -2950,305 +2950,8 @@
 ze);
-%0A    %0A    /**%0A     * Populate a java bean instance for the given type with the posibility of exclude some fields%0A     * %0A     * @param %3CT%3E%0A     * @param type%0A     * @param excludeFieldsName%0A     * @return%0A     */%0A    %3CT%3E T populateBeanWithExcludeFields(Class%3CT%3E type, String... excludeFieldsName);
 %0A%0A%7D%0A

add javadoc