package org.xsalefter.finder4j;

/**
 * Define {@link RestrictionLogic} for {@link Restriction}.
 * @author xsalefter (xsalefter@gmail.com)
 */
public enum RestrictionLogic {

	/** 
	 * Append 'and' string to restriction string. If {@link Restriction} 
	 * position is in the end of whole restriction, the {@link QueryBuilder} 
	 * implementation would ignore this logic.
	 */
	AND,

	/**
	 * Append 'or' string to restriction string. If {@link Restriction} 
	 * position is in the end of whole restriction, the {@link QueryBuilder} 
	 * implementation would ignore this logic.
	 */
	OR;

	/**
	 * Get the lower-case version of this {@link RestrictionLogic#toString()}.
	 * @return {@link String#toLowerCase()} version of {@link RestrictionLogic#toString()}.
	 */
	public String toLowerCase() {
		return this.toString().toLowerCase();
	}

	/**
	 * Get the upper-case version of this {@link RestrictionLogic#toString()}.
	 * @return {@link String#toLowerCase()} version of {@link RestrictionLogic#toString()}.
	 */
	public String toUpperCase() {
		return this.toString().toUpperCase();
	}
}

@@ -174,24 +174,68 @@
 %7B%0A%0A%09/** %0A%09 *
+ Default value for %7B@link RestrictionLogic%7D.
  Append 'and
@@ -238,32 +238,37 @@
 'and' string to 
+%0A%09 * 
 restriction stri
@@ -286,37 +286,32 @@
 nk Restriction%7D 
-%0A%09 * 
 position is in t
@@ -312,32 +312,37 @@
 s in the end of 
+%0A%09 * 
 whole restrictio
@@ -361,37 +361,32 @@
 k QueryBuilder%7D 
-%0A%09 * 
 implementation w
@@ -389,32 +389,37 @@
 on would ignore 
+%0A%09 * 
 this logic.%0A%09 */

Update doc.