public void setServices(Collection col) { services = new ArrayList(); prioritizedServices = new PrioritizedList(); IEnumerator i = col.GetEnumerator(); while (i.MoveNext()) { Service s = (Service)i.Current; addService(s); } }
/** * This method resets the state of the XRD. */ public void reset() { xmlID = ""; idRef = null; version = null; types = new ArrayList(); query = null; status = null; serverStatus = null; expires = null; providerID = null; localIDs = new ArrayList(); equivIDs = new ArrayList(); canonicalIDs = new ArrayList(); // CanonicalID (TODO: Should be 0 or 1) canonicalEquivID = null; refs = new ArrayList(); prioritizedRefs = new PrioritizedList(); redirects = new ArrayList(); prioritizedRedirects = new PrioritizedList(); services = new ArrayList(); prioritizedServices = new PrioritizedList(); selectedServices = new PrioritizedList(); samlAssertion = null; moElem = null; moOtherChildrenVectorsMap = new Dictionary<object, object>(); }
public void setSelectedServices(Collection svcs) { selectedServices = new PrioritizedList(); IEnumerator i = svcs.GetEnumerator(); while (i.MoveNext()) { Service s = (Service)i.Current; int? priority = s.getPriority(); string priStr = (priority == null) ? "null" : priority.ToString(); selectedServices.addObject(priStr, s); } }
public Object clone() { PrioritizedList pl = new PrioritizedList(); pl.sortedList = sortedList; return pl; }