public MetaCommand(String name) { assert(name != null); this.name = name; arguments = new NSMutableArray<String>(); }
public MetaCommand(String name, NSArray<String> arguments) { assert(name != null); assert(arguments != null); this.name = name; this.arguments = new NSMutableArray<String>(arguments); }
protected NSMutableArray<ERMailAttachment> _inlineAttachments() { if (_inlineAttachments == null) _inlineAttachments = new NSMutableArray<>(); return _inlineAttachments; }
@Override public void resetDefaults() { super.resetDefaults(); _attributes = new NSMutableArray(); _flatAttributes = new NSMutableArray(); _isGroup = true; _flatAttributesTotal = null; }
public DRRecord initWithRawRecord(NSKeyValueCodingAdditions rawr, DRReportModel aMod) { _rawRecord = rawr; _model = aMod; _valueList = new NSMutableArray(); _flatValueList = new NSMutableArray(); populateValueList(); return this; }
public void addChildElement(Object obj) { if (_children == null) { _children = new NSMutableArray(); } _children.addObject(obj); }
public WOComponent refreshLoggingClicked() { cache.removeAllObjects(); selectionPath = new NSMutableArray(); events = null; webEvents = null; eofEvents = null; return null; }
static public NSArray masterCriteriaForKey(String akey) { DRMasterCriteria mc; NSMutableArray mcrits = new NSMutableArray(); NSMutableArray smcs = new NSMutableArray(); DRSubMasterCriteria smc = DRSubMasterCriteria.withKeyUseMethodUseTimeFormatFormatPossibleValuesUseTypeGroupEdgesPossibleValues(akey, false, false, null, null, false, null); smcs.addObject(smc); mc = DRMasterCriteria.withSubMasterCriteriaUserInfo(smcs, null); mcrits.addObject(mc); return mcrits; }
/** * Builds an array of localized label strings * * @return array of label/text strings */ protected NSArray<String> _ajaxUploadLabels() { NSMutableArray<String> _labels = new NSMutableArray<>(); _labels.addObject(String.format("upload_canceling:'%s'", cancelingText())); _labels.addObject(String.format("upload_starting:'%s'", startingText())); _labels.addObject(String.format("upload_failed:'%s'", localizedStringForBinding(Keys.failedText, "Upload Failed"))); return _labels; }
/** * Ajax action method for when control clicked to remove all sorting. * Updates configurationData() and displayGroup(). */ public void removeSorting() { if (canResort()) { configurationData().setObjectForKey(hasMandatorySort() ? new NSMutableArray(manadatorySortDictionary()) : new NSMutableArray(), SORT_ORDER); clearCachedConfiguration(); updateDisplayGroupSort(); } }
public static NSArray<String> partialAttributes() { if ( _partialAttributes == null ) { synchronized(ENTITY_NAME) { NSMutableArray<String> partialList = new NSMutableArray<String>(); partialList.addObject( LAST_LOGIN_DATE_KEY ); partialList.addObject( PASSWORD_KEY ); partialList.addObject( USERNAME_KEY ); _partialAttributes = partialList.immutableClone(); } } return _partialAttributes; }
public NSArray<ERIAttributeGroup> groups() { NSMutableArray<ERIAttributeGroup> result = new NSMutableArray<>(); ERIAttributeGroup current = this; result.addObject(current); while (current.parent() != null) { result.insertObjectAtIndex(current, 0); current = current.parent(); } return result; }
public NSArray registeredEventClasses() { NSMutableArray classes; classes = new NSMutableArray(); classes.setArray(EOEventCenter.registeredEventClasses()); try { classes.sortUsingComparator(_classNameAscendingComparator); } catch (NSComparator.ComparisonException e) { throw NSForwardException._runtimeExceptionForThrowable(e); } return classes; }
public NSArray<MInstance> runningInstances_M() { NSMutableArray<MInstance> instances = new NSMutableArray<>(); int numInstances = _instanceArray.count(); for (int i=0; i<numInstances; i++) { MInstance anInstance = (MInstance) _instanceArray.objectAtIndex(i); if (anInstance.isRunning_M()) { instances.addObject(anInstance); } } return instances; }
public Object addSubMasterCrit() { NSMutableArray smcList = new NSMutableArray(masterCriteria.subCriteriaList()); DRMasterCriteriaEditing prnt = (DRMasterCriteriaEditing)parent(); smcList.addObject(DRSubMasterCriteria.withKeyUseMethodUseTimeFormatFormatPossibleValuesUseTypeGroupEdgesPossibleValues("category", false, false, null, null, false, null)); prnt.replaceMCWith(masterCriteria, smcList); return null; }
private NSArray<String> localizeStringArray(NSArray<String> strings) { NSMutableArray<String> localizedStrings = new NSMutableArray<>(strings.count()); ERXLocalizer l = ERXLocalizer.currentLocalizer(); for (String string : strings) localizedStrings.add(l.localizedStringForKeyWithDefault(string)); return localizedStrings.immutableClone(); }
public NSArray nodes() { Object rootNode = treeModel().rootTreeNode(); boolean useCache = ERXComponentUtilities.booleanValueForBinding("cache", true, _keyAssociations, parent()); if (_nodes == null || rootNode == null || !rootNode.equals(_lastRootNode) || !useCache) { NSMutableArray nodes = new NSMutableArray(); boolean showRoot = ERXComponentUtilities.booleanValueForBinding("showRoot", true, _keyAssociations, parent()); _fillInOpenNodes(treeModel().rootTreeNode(), nodes, showRoot); _nodes = nodes; _lastRootNode = rootNode; } return _nodes; }
/** * Builds the array of required additional AjaxUpload data items (<i>sessionIdKey</i>, id). * * @return array of required additional AjaxUpload data items (<i>sessionIdKey</i>, id). */ protected NSArray<String> _ajaxUploadData() { NSMutableArray<String> _data = new NSMutableArray<>(WOApplication.application().sessionIdKey() + ":'" + session().sessionID() + "'"); _data.addObject("id:'" + id() + "'"); return _data.immutableClone(); }
public void setSelection(Object value) { NSMutableArray selections = (selections() != null) ? selections().mutableClone() : new NSMutableArray(); if (value != null) { selections.addObject(item()); } else { selections.removeObject(item()); } setValueForBinding(selections, Bindings.selections); }
public NSDictionary createAjaxOptions(WOComponent component) { NSMutableArray<AjaxOption> ajaxOptionsArray = new NSMutableArray<>(); ajaxOptionsArray.addObject(new AjaxOption("corners", AjaxOption.STRING)); ajaxOptionsArray.addObject(new AjaxOption("color", AjaxOption.STRING)); ajaxOptionsArray.addObject(new AjaxOption("bgColor", AjaxOption.STRING)); ajaxOptionsArray.addObject(new AjaxOption("blend", AjaxOption.BOOLEAN)); ajaxOptionsArray.addObject(new AjaxOption("border", AjaxOption.BOOLEAN)); ajaxOptionsArray.addObject(new AjaxOption("compact", AjaxOption.BOOLEAN)); return AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, component, associations()); }