/*
 * Copyright: (c) 2004-2011 Mayo Foundation for Medical Education and 
 * Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the
 * triple-shield Mayo logo are trademarks and service marks of MFMER.
 *
 * Except as contained in the copyright notice above, or as used to identify 
 * MFMER as the author of this software, the trade names, trademarks, service
 * marks, or product names of the copyright holder shall not be used in
 * advertising, promotion or otherwise in connection with this software without
 * prior written authorization of the copyright holder.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package edu.mayo.cts2.framework.model.command;

import edu.mayo.cts2.framework.model.core.MatchAlgorithmReference;
import edu.mayo.cts2.framework.model.core.ModelAttributeReference;
import edu.mayo.cts2.framework.model.core.URIAndEntityName;
import edu.mayo.cts2.framework.model.core.types.TargetReferenceType;

/**
 * The Class ResolvedFilter.
 *
 * @author <a href="mailto:kevin.peterson@mayo.edu">Kevin Peterson</a>
 */
public class ResolvedFilter {
	
	private MatchAlgorithmReference matchAlgorithmReference;
	private URIAndEntityName propertyReference;
	private ModelAttributeReference modelAttributeReference;
	private String matchValue;
	private TargetReferenceType referenceType = TargetReferenceType.ATTRIBUTE;
	public MatchAlgorithmReference getMatchAlgorithmReference() {
		return matchAlgorithmReference;
	}
	
	public void setMatchAlgorithmReference(
			MatchAlgorithmReference matchAlgorithmReference) {
		this.matchAlgorithmReference = matchAlgorithmReference;
	}

	public URIAndEntityName getPropertyReference() {
		return propertyReference;
	}

	public void setPropertyReference(URIAndEntityName propertyReference) {
		this.propertyReference = propertyReference;
	}

	public ModelAttributeReference getModelAttributeReference() {
		return modelAttributeReference;
	}

	public void setModelAttributeReference(
			ModelAttributeReference modelAttributeReference) {
		this.modelAttributeReference = modelAttributeReference;
	}

	public String getMatchValue() {
		return matchValue;
	}

	public void setMatchValue(String matchValue) {
		this.matchValue = matchValue;
	}

	public TargetReferenceType getReferenceType() {
		return referenceType;
	}

	public void setReferenceType(TargetReferenceType referenceType) {
		this.referenceType = referenceType;
	}
}

@@ -1856,16 +1856,18 @@
 RIBUTE;%0A
+%09%0A
 %09public 
@@ -1913,32 +1913,32 @@
 hmReference() %7B%0A
-
 %09%09return matchAl
@@ -2267,24 +2267,77 @@
 eference) %7B%0A
+%09%09this.referenceType = TargetReferenceType.PROPERTY;%0A
 %09%09this.prope
@@ -2562,32 +2562,86 @@
 uteReference) %7B%0A
+%09%09this.referenceType = TargetReferenceType.ATTRIBUTE;%0A
 %09%09this.modelAttr
@@ -2900,24 +2900,38 @@
 nceType;%0A%09%7D%0A
+%09%0A%09@Deprecated
 %0A%09public voi

Set target type automatically.