package edu.wustl.query.util.global;

public enum CompositeQueryOperations {
	UNION("Union"),
	INTERSECTION("Intersection"),
	MINUS("Minus"),
	NONE("None");
	
	String operation;
	
	CompositeQueryOperations(String operation)
	{
		this.operation=operation;
	}

	public String getOperation()
	{
		return this.operation;
	}
	
	public static CompositeQueryOperations get(final String operation)
	{
		CompositeQueryOperations opToReturn=null;
		for (CompositeQueryOperations operationEnum : CompositeQueryOperations.values()) {
			if(operationEnum.getOperation().equals(operation))
			{
				opToReturn=operationEnum;
			}
		}
		return opToReturn;
	}
}

@@ -83,24 +83,28 @@
 NION(%22Union%22
+,%22+%22
 ),%0D%0A%09INTERSE
@@ -123,16 +123,20 @@
 section%22
+,%22*%22
 ),%0D%0A%09MIN
@@ -145,16 +145,20 @@
 (%22Minus%22
+,%22-%22
 ),%0D%0A%09NON
@@ -165,16 +165,19 @@
 E(%22None%22
+,%22%22
 );%0D%0A%09%0D%0A%09
@@ -195,16 +195,41 @@
 ation;%0D%0A
+%09String shortOperation;%0D%0A
 %09%0D%0A%09Comp
@@ -257,32 +257,55 @@
 String operation
+, String shortOperation
 )%0D%0A%09%7B%0D%0A%09%09this.op
@@ -320,24 +320,65 @@
 operation;%0D%0A
+%09%09this.shortOperation = shortOperation;%0D%0A
 %09%7D%0D%0A%0D%0A%09publi
@@ -439,16 +439,95 @@
 %0A%09%7D%0D%0A%09%0D%0A
+%09public String getShortOperation() %0D%0A%09%7B%0D%0A%09%09return this.shortOperation;%0D%0A%09%7D%0D%0A%09%0D%0A
 %09public 

Refactored the class to add following short hand notation for the Composite query operations :- Union : '+' Intersection : '*' Minus : '-' None : ''