package gov.nih.nci.ncia.criteria;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import gov.nih.nci.ncia.querystorage.QueryAttributeWrapper;


public class ImagingObservationCharacteristicCodeMeaningCriteria extends MultipleValuePersistentCriteria
                                                                 implements Serializable {

    public ImagingObservationCharacteristicCodeMeaningCriteria() {
    }


    public Collection<String> getImagingObservationCharacteristicCodeMeaningNames() {
        return imagingObservationCharacteristicCodeMeaningNames;
    }

    public void setImagingObservationCharacteristicCodeMeaningNames(Collection<String> codeMeaningNames) {
        for (String codeMeaningName : codeMeaningNames) {
            getCreateCollectionObjects().add(codeMeaningName);            
        }
    }


    public void addValueFromQueryAttribute(QueryAttributeWrapper attr) {
    	this.getCreateCollectionObjects().add(attr.getAttributeValue());
    }

    
    /////////////////////////////////PROTECTED//////////////////////////////////////
    
    protected Collection<String> getMultipleValues() {
        return getImagingObservationCharacteristicCodeMeaningNames();
    }
    
    /////////////////////////////PRIVATE//////////////////////////////////
    private Collection<String> imagingObservationCharacteristicCodeMeaningNames;
    
    private Collection<String> getCreateCollectionObjects() {
        if (imagingObservationCharacteristicCodeMeaningNames == null) {
        	imagingObservationCharacteristicCodeMeaningNames = new ArrayList<String>();
        }

        return imagingObservationCharacteristicCodeMeaningNames;
    }    
    
}
@@ -122,36 +122,8 @@
 n;%0D%0A
-import java.util.Iterator;%0D%0A
 impo
@@ -179,16 +179,16 @@
 apper;%0D%0A
+
 %0D%0A%0D%0Apubl
@@ -853,28 +853,16 @@
 ngName);
-            
 %0D%0A      
@@ -1031,22 +1031,18 @@
    %7D%0D%0A%0D%0A
-    
 %0D%0A
+
     ////
@@ -1119,22 +1119,18 @@
 //////%0D%0A
-    
 %0D%0A
+
     prot
@@ -1255,22 +1255,18 @@
 %0A    %7D%0D%0A
-    
 %0D%0A
+
     ////
@@ -1415,22 +1415,18 @@
 Names;%0D%0A
-    
 %0D%0A
+
     priv
@@ -1727,17 +1727,9 @@
    %7D
-    %0D%0A    
+%0D%0A
 %0D%0A%7D

remove unused import