public JsonSerializer exclude(final boolean includeParent, final String... excludes) {
		for (String exclude : excludes) {
			if (includeParent) {
				int dotIndex = exclude.lastIndexOf('.');
				if (dotIndex != -1) {
					PathQuery pathQuery = new PathQuery(exclude.substring(0, dotIndex), true);

					rules.include(pathQuery);
				}
			}

			PathQuery pathQuery = new PathQuery(exclude, false);

			rules.exclude(pathQuery);
		}

		return this;
	}
public JsonSerializer exclude(final boolean includeParent, final String... excludes) {
		for (String exclude : excludes) {
			if (includeParent) {
				int dotIndex = exclude.lastIndexOf('.');
				if (dotIndex != -1) {
					PathQuery pathQuery = new PathQuery(exclude.substring(0, dotIndex), true);

					rules.include(pathQuery);
				}
			}

			PathQuery pathQuery = new PathQuery(exclude, false);

			rules.exclude(pathQuery);
		}

		return this;
	}
public JsonSerializer exclude ( final boolean includeParent , final String ... excludes ) { for ( String exclude : excludes ) { if ( includeParent ) { int dotIndex = exclude . lastIndexOf ( ' ' ) ; if ( dotIndex != - 1 ) { PathQuery pathQuery = new PathQuery ( exclude . substring ( 0 , dotIndex ) , true ) ; rules . include ( pathQuery ) ; } } PathQuery pathQuery = new PathQuery ( exclude , false ) ; rules . exclude ( pathQuery ) ; } return this ; }
Adds excludes with optional parent including. When parents are included,
for each exclude query its parent will be included.
For example, exclude of 'aaa.bb.ccc' would include it's parent: 'aaa.bb'.
Adds excludes with optional parent including . When parents are included for each exclude query its parent will be included . For example exclude of aaa . bb . ccc would include it s parent : aaa . bb .