public void beginTransaction() { if (!_hasTransaction) { _hasTransaction = true; _transactionEntityStores = new NSMutableDictionary<>(); } }
public void setUserInfo(NSDictionary value) { if(value == null) { value = new NSMutableDictionary(); } _userInfo = value; }
public DRMasterCriteria() { super(); _label = null; _userInfo = new NSMutableDictionary(); _criteriaLookupDict = new NSMutableDictionary(); }
public DRRecordGroup() { super(); _totals = new NSMutableDictionary(); _recordList = new NSMutableArray(); _recordGroupDict = new NSMutableDictionary(); _totalsByKey = new NSMutableDictionary(); _staleTotal = true; _pregroupedListFound = false; _sortedRecordList = null; }
public DRAttribute() { super(); _userInfo = new NSMutableDictionary(); //_emptyArray = new NSMutableArray(); resetDefaults(); }
/** * @param ajaxOptions list of AjaxOption to evaluate on component * @param component WOComponent to get binding value from * * @return dictionary produced by evaluating the array of AjaxOption on a WOComponent and adding the resulting name and JavaScript formatted values */ public static NSMutableDictionary<String, String> createAjaxOptionsDictionary(NSArray<AjaxOption> ajaxOptions, WOComponent component) { NSMutableDictionary<String, String> optionsDictionary = new NSMutableDictionary<>(); for (AjaxOption ajaxOption : ajaxOptions) { ajaxOption.addToDictionary(component, optionsDictionary); } return optionsDictionary; }
public NSDictionary buildPresetLookupDict() { NSMutableDictionary adict = new NSMutableDictionary(); Enumeration anEnum = _possibleValues.objectEnumerator(); while (anEnum.hasMoreElements()) { Object aval = anEnum.nextElement(); // WARNING adict.setObjectForKey(aval, aval); } return new NSDictionary(adict); }
public WOEventDisplayPage(WOContext aContext) { super(aContext); selectionPath = new NSMutableArray(); _displayMode = 1; cache = new NSMutableDictionary(); // we sort these things descending, i.e. the opposite of normal sorting order _eventAscendingComparator = new _EventComparator(EOSortOrdering.CompareDescending, this); }
public EREntityStoreFactory(Class<? extends EREntityStore> clazz) { _entityStores = new NSMutableDictionary<>(); _entityStoreClazz = clazz; NSNotificationCenter.defaultCenter().addObserver(this, new NSSelector("resetAllEntities", new Class[] { NSNotification.class }), RESET_ALL_ENTITIES, null); }
public NSMutableDictionary childrenFromGroupCriteriaList() { DRCriteria crit; NSArray crits = _masterCriteria.criteriaLookupDict().allValues(); Enumeration anEnum = crits.objectEnumerator(); NSMutableDictionary recGrpDict = new NSMutableDictionary(); while (anEnum.hasMoreElements()) { crit = (DRCriteria)anEnum.nextElement(); DRRecordGroup recGrp = DRRecordGroup.withCriteriaGroupParent(crit, this, null); recGrpDict.setObjectForKey(recGrp, crit.keyDesc()); } return recGrpDict; }
private NSMutableDictionary buildLookUpCoordinates() { NSMutableDictionary dict = new NSMutableDictionary(); if (_criteria == null) { return dict; } if (_parent != null) { coordsFromRecGroupDictionary(_parent, dict); } dict.setObjectForKey(_criteria, _criteria.masterCriteria().keyDesc()); return dict; }
public NSDictionary groupsWithCriteriaArray(NSArray aCritArray) { NSMutableDictionary grpDict = new NSMutableDictionary(); NSMutableArray grps = new NSMutableArray(); Enumeration anEnum = aCritArray.objectEnumerator(); while (anEnum.hasMoreElements()) { DRMasterCriteria amc = (DRMasterCriteria)anEnum.nextElement(); DRGroup grp = DRGroup.withReportModelMasterCriteria(this, amc); grps.addObject(grp); grpDict.setObjectForKey(grp, amc.keyDesc()); } NSDictionary dict = new NSDictionary(new Object[]{grps, grpDict}, new Object[]{"groups", "lookup"}); return dict; }
@SuppressWarnings({ "rawtypes", "unchecked" }) public NSDictionary childRelationshipBindings() { NSArray masterObjectAndRelationshipKey = new NSArray(d2wContext() .valueForKeyPath("object"), d2wContext().valueForKey( Keys.nestedRelationship)); return new NSMutableDictionary("masterObjectAndRelationshipKey", masterObjectAndRelationshipKey); }
static public String pListStringAttributeListMasterCriteriaList(NSArray attList, NSArray mcList) { NSMutableDictionary dict = new NSMutableDictionary(); NSArray mcListString = DRReportModel.masterCriteriaListString(mcList); NSArray attListString = DRReportModel.attributeListString(attList); dict.setObjectForKey(mcListString, GROUP_DEF_KEY); dict.setObjectForKey(attListString, ATTRIBUTE_DEF_KEY); return dict.toString(); }
public String clickToOpenUrl() { String app = (String) valueForBinding("app"); if (app == null) { app = NSBundle.mainBundle().name(); } NSMutableDictionary params = new NSMutableDictionary(); params.setObjectForKey(app, "app"); params.setObjectForKey("REPLACEME", "component"); return WOLipsUtilities.wolipsUrl("openComponent", params); }
public MInstance(NSDictionary aDict, MSiteConfig aConfig) { shutdownFormatter.setDefaultFormatTimeZone(NSTimeZone.timeZoneWithName("UTC", true)); values = new NSMutableDictionary(aDict); _host = aConfig.hostWithName(hostName()); _application = aConfig.applicationWithName(applicationName()); _siteConfig = aConfig; calculateNextScheduledShutdown(); }
public static final void highlight(Object obj, boolean isNew) { if (obj != null) { NSMutableDictionary highlightedObjects = (NSMutableDictionary) ERXWOContext.contextDictionary().valueForKey(AjaxHighlight.HIGHLIGHTED_KEY); if (highlightedObjects == null) { highlightedObjects = new NSMutableDictionary(); ERXWOContext.contextDictionary().takeValueForKey(highlightedObjects, AjaxHighlight.HIGHLIGHTED_KEY); } highlightedObjects.setObjectForKey(new HighlightMetadata(isNew), highlightedValue(obj)); } }
/** * @return dictionary of sortOrders() keyed on KEY_PATH of column */ public NSMutableDictionary sortOrdersByKeypath() { if (sortOrdersByKeypath == null) { NSArray sortOrders = sortOrders(); sortOrdersByKeypath = new NSMutableDictionary(sortOrders.count()); for (int i = 0; i < sortOrders.count(); i++) { sortOrdersByKeypath.setObjectForKey(sortOrders.objectAtIndex(i), ((NSKeyValueCoding) sortOrders.objectAtIndex(i)).valueForKey(KEY_PATH)); } } return sortOrdersByKeypath; }
/** * @return dictionary of columns() keyed on KEY_PATH of column */ public NSMutableDictionary columnsByKeypath() { if (columnsByKeypath == null) { NSArray columns = columns(); columnsByKeypath = new NSMutableDictionary(columns.count()); for (int i = 0; i < columns.count(); i++) { columnsByKeypath.setObjectForKey(columns.objectAtIndex(i), ((NSKeyValueCoding) columns.objectAtIndex(i)).valueForKey(KEY_PATH)); } } return columnsByKeypath; }
public String testLink() { NSMutableDictionary<String, Object> queryArgs = new NSMutableDictionary<String, Object>(); String format = context().request().stringFormValueForKey("format"); if (format != null) queryArgs.setObjectForKey(format, "format"); context().generateCompleteURLs(); String link = context().directActionURLForActionNamed(String.format("SeleniumTestSuite/%s%s", (hasTestGroup() ? testGroupName() + ERSelenium.SUITE_SEPERATOR : ""), testFile.getName()), queryArgs, context().request().isSecure(), false); context().generateRelativeURLs(); return link; }